-
Notifications
You must be signed in to change notification settings - Fork 99
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
Search endpoint fixes #4420
Conversation
Following you can find the validation results for the API you have changed.
You can validate this API yourself by using the |
before it was 2316/2401 2384/2385 |
There was a problem hiding this 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
).
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 |
Related to #4382 |
Following you can find the validation results for the API you have changed.
You can validate this API yourself by using the |
splitting this in 2 so that the additive changes can be pushed to 8.x/9.0 and the breaking changes to 9.1 |
|
||
export enum ScoreNormalizer { | ||
none, | ||
minmax |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
* 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)
* 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)
* 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)
* 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>
* 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>
* 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>
Slowly increasing validation score for
search
.reason
in ErrorCause can be "null", not just missing (source: I trust the recordings for this one)geogrid
is actually calledgeotile
(source: server code)ruleset_ids
in RuleRetriever can also accept string (not going to check it's always like this with string arrays)ruleset_ids
andruleset_id
(which is the same just in a string format) (source: server code)WeightedTokensQuery'stokens
is actually a list of WeightedToken objects, but since the field is a sting let's make it a list of Single Key Dictionaries (source: server code)HighlightField is also a Single Key Dictionary (one or many) (source: server code)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.