-
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
[BUG] Sigmoid rank function - incorrect ranking explanation #14921
Comments
@opensearch-project/admin could we redirect this issue to opensearch team? |
[Triage - attendees 1 2] |
/assign |
This looks like a straightforward bug. Start by writing a REST test for it (https://github.com/opensearch-project/OpenSearch/blob/main/TESTING.md#testing-the-rest-layer), maybe add to https://github.com/opensearch-project/OpenSearch/blob/95fe9cbabcf9da0a5fad6eafd4092b4284520a9a/modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/rank_features/? |
@evgeniya00 this looks like a bug in lucene. Raised a PR there apache/lucene#13691. |
PR is merged and backported. Should be resolved in 9.12 lucene upgrade. |
Search Triage: We should be upgrading Lucene incorporating this fix as part of OS 2.18. Thanks @owaiskazi19 for the fix. |
@hrishikeshdkakkad if later you want to add a REST test for it. Here is something I started and you can continue iterating on it ---
"Search with explain=true":
- do:
search:
index: test
body:
query:
bool:
should:
- match_phrase_prefix:
title: "Document 1"
- rank_feature:
field: pagerank
sigmoid:
pivot: 3
exponent: 0.5
explain: true
- match:
hits.hits.0._id: "1"
- match:
hits.hits.1._id: "2"
# Check pivot and exponent values in the explanation
- match:
hits.hits.0._explanation.details.1.details.1.value: 3.0
- match:
hits.hits.0._explanation.details.1.details.2.value: 0.5
- match:
hits.hits.1._explanation.details.0.details.1.value: 3.0
- match:
hits.hits.1._explanation.details.0.details.2.value: 0.5
# Test teardown
---
teardown:
- do:
indices.delete:
index: test
ignore: 404
|
Both pivot and exponent are filled with pivot value
Expected behavior
Pivot and exponent are displayed correctly
OpenSearch Version
2.11.1
The text was updated successfully, but these errors were encountered: