Skip to content

Conversation

@jimczi
Copy link
Contributor

@jimczi jimczi commented Jun 6, 2017

This change moves the parent_id query to the parent-join module and handles the case when only the parent-join field can
be declared on an index (index with single type on).
If single type is off it uses the legacy parent join field mapper and switch to the new one otherwise (default in 6).

Relates #20257

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one comment about a test. Otherwise LGTM.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also change testParentIdQuery() to also test with joinField?

jimczi added 2 commits June 6, 2017 18:01
This change moves the parent_id query to the parent-join module and handles the case when only the parent-join field can
be declared on an index (index with single type on).
If single type is off it uses the legacy parent join field mapper and switch to the new one otherwise (default in 6).

Relates elastic#20257
@jimczi jimczi force-pushed the parent_id_query_single_type branch from 79eb2c9 to 7d56f56 Compare June 6, 2017 16:11
@jimczi jimczi merged commit 7e60cf3 into elastic:master Jun 6, 2017
@jimczi jimczi deleted the parent_id_query_single_type branch June 6, 2017 17:35
jimczi added a commit to jimczi/elasticsearch that referenced this pull request Jun 7, 2017
This change moves the parent_id query to the parent-join module and handles the case when only the parent-join field can be declared on an index (index with single type on).
If single type is off it uses the legacy parent join field mapper and switch to the new one otherwise (default in 6).

Relates elastic#20257
jimczi added a commit that referenced this pull request Jun 7, 2017
This is a full backport of the typeless parent child feature (parent-join) introduced in master.
It includes:
* Introduce ParentJoinFieldMapper, a field mapper that creates parent/child relation within documents of the same index (#24978)
* Disallow multiple parent-join fields per mapping (#25002)
* Change `has_child`, `has_parent` queries and `childen` aggregation to work with the new join field type and at the same time maintaining support for the `_parent` meta field type.
* Move parent_id query to the parent-join module (#25072)
* Changed inner_hits to work with the new join field type and
at the same time maintaining support for the `_parent` meta field type

Relates #20257
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Parent/Child labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>feature :Search/Search Search-related issues that do not fall into other categories v5.6.0 v6.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants