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

Use a mapping snapshot for fetching nested docs #66877

Merged
merged 4 commits into from
Jan 13, 2021

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Dec 29, 2020

This uses the mapping snapshot that we built for the search phase
in #66295 for fetching nested documents. This is simpler to reason about
because the mapping snapshot is immutable.

This uses the mapping snapshot that we built for the search phase
in elastic#66295 for fetching nested documents. This is simpler to reason about
because the mapping snapshot is immutable.
@nik9000 nik9000 added :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.12.0 labels Dec 29, 2020
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Dec 29, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Copy link
Contributor

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

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

This looks like a nice refactor, it continues to consolidate mapping lookup logic onto MappingLookup, in line with the overall design.

This refactor made me notice that we aren't guaranteed to use the same MappingLookup for the query and fetch phases. I wrote a comment here, it'd be great to get your thoughts: #66295 (comment).

Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

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

LGTM thanks @nik9000 and sorry it took me so long to review it

@nik9000 nik9000 merged commit d7761bf into elastic:master Jan 13, 2021
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Jan 13, 2021
…66877)

This uses the mapping snapshot that we built for the search phase
in elastic#66295 for fetching nested documents. This is simpler to reason about
because the mapping snapshot is immutable.
nik9000 added a commit that referenced this pull request Jan 13, 2021
…67451)

This uses the mapping snapshot that we built for the search phase
in #66295 for fetching nested documents. This is simpler to reason about
because the mapping snapshot is immutable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.12.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants