Skip to content

Search endpoint fixes #4420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 6, 2025
Merged

Search endpoint fixes #4420

merged 9 commits into from
Jun 6, 2025

Conversation

l-trotta
Copy link
Contributor

@l-trotta l-trotta commented May 28, 2025

Slowly increasing validation score for search.

The last 2 are breaking changes for static clients so I'm wondering if we should even introduce them just for the sake of validation, since it's not really broken, but it currently does not comply 100% with what the server can accept.

Copy link
Contributor

Following you can find the validation results for the API you have changed.

API Status Request Response
search 🔴 2349/2401 2385/2385

You can validate this API yourself by using the make validate target.

@l-trotta
Copy link
Contributor Author

2349/2401 2385/2385

before it was 2316/2401 2384/2385

Copy link
Member

@flobernd flobernd 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 my side.

I would as well be fine with the breaking changes.

Btw: I think there is another retriever missing (the LinearRetriever).

@l-trotta
Copy link
Contributor Author

thanks @flobernd! let's discuss with the others, if everyone is fine with the changes we'll merge it as is. and I'll also check the other retrievers

@flobernd
Copy link
Member

flobernd commented Jun 2, 2025

Related to #4382

Copy link
Contributor

github-actions bot commented Jun 4, 2025

Following you can find the validation results for the API you have changed.

API Status Request Response
search 🔴 2362/2414 2398/2398

You can validate this API yourself by using the make validate target.

@pquentin pquentin added the skip-backport This pull request should not be backported label Jun 5, 2025
@l-trotta
Copy link
Contributor Author

l-trotta commented Jun 5, 2025

splitting this in 2 so that the additive changes can be pushed to 8.x/9.0 and the breaking changes to 9.1

@l-trotta l-trotta added backport 8.19 backport 9.0 backport 8.18 and removed skip-backport This pull request should not be backported labels Jun 5, 2025

export enum ScoreNormalizer {
none,
minmax
Copy link

@ioanatia ioanatia Jun 5, 2025

Choose a reason for hiding this comment

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

can I ask to please add l2_norm here? 🥺
it was just merged this week cc @mridula-s109

EDIT: we should only add this for 9.1/8.19

Copy link
Member

Choose a reason for hiding this comment

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

Hi @ioanatia , we have to add the l2_norm in a separate PR since this one should as well be in 8.18.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for noticing this! I'll add this in another PR since l2_norm will only be available in 8.19 and 9.1

@l-trotta l-trotta merged commit 6e14823 into main Jun 6, 2025
8 checks passed
@l-trotta l-trotta deleted the search-validation branch June 6, 2025 09:24
github-actions bot pushed a commit that referenced this pull request Jun 6, 2025
* search endpoint fixes

* revert breaking changes

* added linear and pinned retriever

* prettier?

* Run prettier

* use alias types

* pretty

* pretty!

---------

Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
(cherry picked from commit 6e14823)
github-actions bot pushed a commit that referenced this pull request Jun 6, 2025
* search endpoint fixes

* revert breaking changes

* added linear and pinned retriever

* prettier?

* Run prettier

* use alias types

* pretty

* pretty!

---------

Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
(cherry picked from commit 6e14823)
github-actions bot pushed a commit that referenced this pull request Jun 6, 2025
* search endpoint fixes

* revert breaking changes

* added linear and pinned retriever

* prettier?

* Run prettier

* use alias types

* pretty

* pretty!

---------

Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
(cherry picked from commit 6e14823)
l-trotta added a commit that referenced this pull request Jun 6, 2025
* search endpoint fixes

* revert breaking changes

* added linear and pinned retriever

* prettier?

* Run prettier

* use alias types

* pretty

* pretty!

---------


(cherry picked from commit 6e14823)

Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
l-trotta added a commit that referenced this pull request Jun 6, 2025
* search endpoint fixes

* revert breaking changes

* added linear and pinned retriever

* prettier?

* Run prettier

* use alias types

* pretty

* pretty!

---------


(cherry picked from commit 6e14823)

Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
l-trotta added a commit that referenced this pull request Jun 6, 2025
* search endpoint fixes

* revert breaking changes

* added linear and pinned retriever

* prettier?

* Run prettier

* use alias types

* pretty

* pretty!

---------


(cherry picked from commit 6e14823)

Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants