Skip to content

Conversation

@kderusso
Copy link
Member

@kderusso kderusso commented Jul 7, 2025

This provides a simple query rewriter to support rewriting match queries under certain known circumstances to semantic queries. In practice, this is planned to be used internally in the RankFeatureShardPhase during query rewrite time, when we want to manually create a semantic query to correctly extract snippets in this phase where no rewrite context is accessible.

@kderusso kderusso added >refactoring :SearchOrg/Relevance Label for the Search (solution/org) Relevance team labels Jul 7, 2025
@kderusso kderusso requested a review from a team as a code owner July 7, 2025 18:43
@kderusso kderusso added the v9.2.0 label Jul 7, 2025
@kderusso kderusso requested review from Mikep86 and jimczi July 7, 2025 18:44
@elasticsearchmachine elasticsearchmachine added Team:SearchOrg Meta label for the Search Org (Enterprise Search) Team:Search - Relevance The Search organization Search Relevance team labels Jul 7, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-relevance (Team:Search - Relevance)

Copy link
Contributor

@Mikep86 Mikep86 left a comment

Choose a reason for hiding this comment

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

RankFeatureShardPhase executes on the shard though, and at this point it's too late to rewrite to a semantic query as inference is performed on the coordinator node...

@kderusso
Copy link
Member Author

kderusso commented Jul 7, 2025

Closed per discussion on Slack

@kderusso kderusso closed this Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>refactoring :SearchOrg/Relevance Label for the Search (solution/org) Relevance team Team:Search - Relevance The Search organization Search Relevance team Team:SearchOrg Meta label for the Search Org (Enterprise Search) v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants