Skip to content

Conversation

@kderusso
Copy link
Member

@kderusso kderusso commented Mar 4, 2024

This PR fixes a regression introduced in #105581 that broke cross cluster search for text expansion queries, since CCS supports versions that do not yet have the weighted tokens query.

@kderusso kderusso added >non-issue :EnterpriseSearch/Application Enterprise Search Team:Enterprise Search Meta label for Enterprise Search team v8.14.0 labels Mar 4, 2024
@kderusso kderusso requested a review from a team March 4, 2024 15:23
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ent-search-eng (Team:Enterprise Search)

@kderusso kderusso changed the title Bugfix for CCR queries using text expansion Bugfix for CCS queries using text expansion Mar 4, 2024
Copy link
Contributor

@demjened demjened left a comment

Choose a reason for hiding this comment

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

LGTM, I'd just like to see more verbal explanation of the two use cases and when we might fall back.

return weightedTokensQueryBuilder;
}
// Note: Weighted tokens queries were introduced in 8.13.0. To support cross cluster search against older versions,
// if no token pruning configuration is specified we fall back to a boolean query.
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that mixed version cluster requires this too which is why it was done this way in the first place. We expect that the weighted token config is used only when all nodes in the cluster are >= 8.13.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, edited the comment

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for adding this comment. This will help us avoid making this change in future.

@kderusso kderusso changed the title Bugfix for CCS queries using text expansion Bugfix for mixed version cluster queries using text expansion Mar 5, 2024
@kderusso
Copy link
Member Author

kderusso commented Mar 5, 2024

@elasticmachine merge upstream

@kderusso kderusso merged commit fe13a04 into elastic:main Mar 5, 2024
@kderusso kderusso deleted the kderusso/ccr-text-expansion-bugfix branch July 8, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:EnterpriseSearch/Application Enterprise Search >non-issue Team:Enterprise Search Meta label for Enterprise Search team v8.14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants