-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Conversation
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.
Pinging @elastic/es-search (Team:Search) |
There was a problem hiding this 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).
There was a problem hiding this 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
…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.
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.