Skip to content

Comments

Refactor QueryNodeMapper to only use DocLookup#923

Merged
aprudhomme merged 1 commit intoYelp:mainfrom
aprudhomme:refactor_query_node_mapper
Jan 28, 2026
Merged

Refactor QueryNodeMapper to only use DocLookup#923
aprudhomme merged 1 commit intoYelp:mainfrom
aprudhomme:refactor_query_node_mapper

Conversation

@aprudhomme
Copy link
Contributor

The QueryNodeMapper converts the gRPC query definition into Lucene queries. This review refactors this process to use DocLookup instead of IndexState. This is useful since it allows for use by plugins, which don't have access to the IndexState.

A couple enhancements were added to DocLookup. A getFieldDefOrThrow method, which replicates the functionality of the IndexState method. A getAllFieldNames method which provides all valid field names, which was needed for construction of one of the query types.

@aprudhomme aprudhomme requested a review from sarthakn7 January 28, 2026 19:00
@aprudhomme aprudhomme merged commit bee362e into Yelp:main Jan 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants