-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Named queries should return their internal score as well #7883
Named queries should return their internal score as well #7883
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
30d13ef
to
5b35d5c
Compare
Gradle Check (Jenkins) Run Completed with:
|
5b35d5c
to
7869184
Compare
Gradle Check (Jenkins) Run Completed with:
|
7869184
to
e715622
Compare
Gradle Check (Jenkins) Run Completed with:
|
I'm just wondering what additional details we can provide there in the future? I'm calling YAGNI on it and let's do something simple that works first and worry about the rest later. I just don't see anything else we can possible want to provide other than score. |
I understand why we would want the query string parameter here, but, to answer @dblock's question for me, I don't know of any precedent for this in OpenSearch. Even the query_string function is all in the body of the request and I really like that about OpenSearch (as a former old-school Solr user). I don't have a better answer for this either that doesn't create a breaking change to push this to 3.0 unfortunately. |
Let's make a breaking change for 3.0 in this PR? I feel pretty strongly that we should avoid this problem for future changes here and do:
and not
We can discuss a non-breaking version on a backport? |
This PR is stalled because it has been open for 30 days with no activity. Remove stalled label or comment or this will be closed in 7 days. |
This PR was closed because it has been stalled for 7 days with no activity. |
Apologies. This PR was auto closed without reaching a resolution from the maintainers. |
Compatibility status:Checks if related components are compatible with change 4dbf0ad Incompatible componentsSkipped componentsCompatible components |
Gradle Check (Jenkins) Run Completed with:
|
Thanks @kotwanikunal looking forward to final decision, let's get this in! |
Hi @synhershko, the PR is stalled. Is this being worked upon? Feel free to reach out to maintainers for further reviews. |
@ticheng-aws I'm well aware this is stalled, see my comment #7883 (comment) and previous discussions. When maintainers pick it up and conclude their discussion I'm happy to pick it up again. |
I think #7883 (comment) is still accurate? A breaking change for |
@dblock I agree with your suggestion. I'll ship this PR as a breaking change to main with the structure you proposed. I think we can deliver this in 2.x with some sort of yet-to-be-decided opt-in mechanism as well, but we can work that out once this has landed in main. |
@synhershko take a look? what shall we do with this PR? |
This PR is stalled because it has been open for 30 days with no activity. |
I believe this has been implemented in #11626. I'm going to close this. @synhershko Please do speak up if #11626 doesn't solve your problem. |
Description
While some internal queries may not be scored or not contrbute to the final doc score, in some cases (such as knn queries compbined with other queries) the distance metric is very interesting and should be reported back as part of the response.
This change adds that by default, so named queries always return the score (instead of just the name). It adds no additional cost.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.