Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Jun 4, 2025

Remove the need of using automatons to match terms on wildcard fields. This PR addresses this issue by adding a BinaryDvConfirmedTermsQuery to execute terms queries which uses binary search over terms instead of an automaton.
We are currently only using it to match one term at a time but the plan is to use it for terms queries too.

@iverase iverase requested a review from mayya-sharipova June 4, 2025 17:26
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jun 4, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

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

@iverase Very Nice optimization! it makes sense to use bytes comparison instead of Automaton for this case.

I was trying to think of case where Automaton will allow to capture us something more than a simple byte comparison, but could not find any.

@iverase iverase added the auto-backport Automatically create backport pull requests when merged label Jun 5, 2025
@iverase iverase merged commit 6f27ac8 into elastic:main Jun 5, 2025
18 checks passed
@iverase iverase deleted the BinaryDvConfirmedQuery branch June 5, 2025 10:55
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.19 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 128920

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >non-issue :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants