Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ParentJoinFieldMapper, a field mapper that creates parent/child relation within documents of the same index #24978

Merged
merged 3 commits into from
May 31, 2017

Commits on May 31, 2017

  1. Introduce ParentJoinFieldMapper, a field mapper that creates parent/c…

    …hild relation within documents of the same index
    
    This change adds a new field mapper named ParentJoinFieldMapper. This mapper is a replacement for the ParentFieldMapper but instead of using the types in the mapping
    it uses an internal field to materialize parent/child relation within a single index.
    This change also adds a fetch sub phase that automatically retrieves the join name (parent or child name) and the parent id for child documents in the response hit fields.
    The compatibility with `has_parent`, `has_child` queries and `children` agg will be added in a follow up.
    
    Relates elastic#20257
    jimczi committed May 31, 2017
    Configuration menu
    Copy the full SHA
    e2cd8bd View commit details
    Browse the repository at this point in the history
  2. Remove unrelated change

    jimczi committed May 31, 2017
    Configuration menu
    Copy the full SHA
    3cb3a34 View commit details
    Browse the repository at this point in the history
  3. after review

    jimczi committed May 31, 2017
    Configuration menu
    Copy the full SHA
    d03d9b5 View commit details
    Browse the repository at this point in the history