You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected behavior?
Expected to have only three docs with the score very close to 1.0 (0.99028254 in my example). Actual response got 4 docs with the same score 0.99028254. For the last doc of those 4 with id "0.gettysburg" score calculated incorrectly, it should be about 0.7301.
What is your host/environment?
knn 1.3.7, 1 data node, 2 master nodes, 1 shard, 1 replica. Same incorrect behavior is on 2.0, 2.2. 2.3 works as expected.
Do you have any additional context?
Issue reproducible on 1.3 and some of 2.x - 2.2 and 2.0, same setup works fine on 2.3 +
If doc in question deleted and uploaded using single POST system works as expected
I tried on dev environment using test cluster, after shooting search query cluster crushes with error
» java.lang.AssertionError: Sub-iterators of ConjunctionDISI are not on the same document!
» at org.apache.lucene.search.ConjunctionDISI$BitSetConjunctionDISI.nextDoc(ConjunctionDISI.java:303)
» at org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.setScoreAndFreq(ToParentBlockJoinQuery.java:356)
» at org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.score(ToParentBlockJoinQuery.java:331)
» at org.apache.lucene.search.TopScoreDocCollector$SimpleTopScoreDocCollector$1.collect(TopScoreDocCollector.java:76)
» at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreRange(Weight.java:258)
» at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:245)
» at org.opensearch.search.internal.CancellableBulkScorer.score(CancellableBulkScorer.java:69)
» at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
» at org.opensearch.search.internal.ContextIndexSearcher.searchLeaf(ContextIndexSearcher.java:253)
» at org.opensearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:226)
» at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443)
» at org.opensearch.search.query.QueryPhase.searchWithCollector(QueryPhase.java:312)
» at org.opensearch.search.query.QueryPhase.executeInternal(QueryPhase.java:269)
» at org.opensearch.search.query.QueryPhase.execute(QueryPhase.java:146)
» at org.opensearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:441)
» at org.opensearch.search.SearchService.executeQueryPhase(SearchService.java:505)
» at org.opensearch.search.SearchService.access$500(SearchService.java:154)
» at org.opensearch.search.SearchService$2.lambda$onResponse$0(SearchService.java:474)
» at org.opensearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:71)
» at org.opensearch.action.ActionRunnable$2.doRun(ActionRunnable.java:86)
» at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:50)
» at org.opensearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:57)
» at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:792)
» at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:50)
» at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
» at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
» at java.base/java.lang.Thread.run(Thread.java:829)
The text was updated successfully, but these errors were encountered:
What is the bug?
KNN return incorrect score for docs in search query response. Same setup and data works fine on 2.3 and above.
How can one reproduce the bug?
Steps to reproduce the behavior:
Getting response similar to one below:
What is the expected behavior?
Expected to have only three docs with the score very close to 1.0 (0.99028254 in my example). Actual response got 4 docs with the same score 0.99028254. For the last doc of those 4 with id "0.gettysburg" score calculated incorrectly, it should be about 0.7301.
What is your host/environment?
Do you have any additional context?
The text was updated successfully, but these errors were encountered: