Skip to content

Conversation

@carlosdelest
Copy link
Member

@carlosdelest carlosdelest commented Aug 12, 2025

This test fixes potential scoring issues when using multiple shards, for example on serverless.

@carlosdelest carlosdelest added >test Issues or PRs that are addressing/adding tests Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch :Search Relevance/ES|QL Search functionality in ES|QL labels Aug 12, 2025
@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Aug 12, 2025
@carlosdelest carlosdelest marked this pull request as ready for review August 13, 2025 07:28
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

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

LGTM

from colors
| where knn(rgb_vector, [120,180,0], 10) and (match(color, "olive") or match(color, "green"))
| sort color asc
| keep color
Copy link
Member

Choose a reason for hiding this comment

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

We could probably still keep the rgb_vector data for this test even if we're no longer sorting on score?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could - however, I don't see the point as we don't need to check scores here, so it doesn't serve any debugging purpose.

@carlosdelest carlosdelest merged commit 173d2c1 into elastic:main Aug 13, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/ES|QL Search functionality in ES|QL serverless-linked Added by automation, don't add manually Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants