[ 
https://issues.apache.org/jira/browse/LUCENE-10663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17572575#comment-17572575
 ] 

ASF subversion and git services commented on LUCENE-10663:
----------------------------------------------------------

Commit bb752c774ca0264a02a60e9b8568addb7b6722d3 in lucene's branch 
refs/heads/main from Shiming Li
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=bb752c774ca ]

LUCENE-10663: Fix KnnVectorQuery explain with multiple segments (#1050)

If there are multiple segments. KnnVectorQuery explain has a bug in locating
the doc ID. This is because the doc ID in explain is the docBase without the
segment.  In KnnVectorQuery.DocAndScoreQuery docs docid is increased in each
segment of the docBase. So, in the 'DocAndScoreQuery.explain', needs to be
added with the segment's docBase. 

Co-authored-by: Julie Tibshirani <juliet...@apache.org>

> KnnVectorQuery explain incorrect when multiple segments
> -------------------------------------------------------
>
>                 Key: LUCENE-10663
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10663
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: 9.0, 9.1, 9.2
>            Reporter: Shiming Li
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> If there are multiple segments. KnnVectorQuery explain has a bug in locating 
> docid. 
> This is because the docid in explain, which is the docBase without the 
> segment. 
> In KnnVectorQuery.DocAndScoreQuery docs docid is increased in each segment of 
> the docBase. 
> The two docid are not in the same dimension.
> So, in the 'DocAndScoreQuery.explain', needs to be added with the segment's 
> docBase. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to