You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2013/07/12 06:03:48 UTC

[jira] [Updated] (LUCENE-5103) join on single-valued field with deleted docs scores too few docs

     [ https://issues.apache.org/jira/browse/LUCENE-5103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated LUCENE-5103:
---------------------------------

    Attachment: LUCENE-5103_join_livedocs_bug.patch

This patch fixes the bug.

It also refactors MVInnerScorer so that it overrides a new method that has the essence of the delta needed over SVInnerScorer -- its superclass.
                
> join on single-valued field with deleted docs scores too few docs
> -----------------------------------------------------------------
>
>                 Key: LUCENE-5103
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5103
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/join
>    Affects Versions: 4.3.1
>            Reporter: David Smiley
>            Assignee: David Smiley
>             Fix For: 4.4
>
>         Attachments: LUCENE-5103_join_livedocs_bug.patch
>
>
> TermsIncludingScoreQuery has an inner class SVInnerScorer used when the "to" side of a join is single-valued.  This has a nextDocOutOfOrder() method that is faulty when there are deleted documents, and a document that is deleted is matched by the join.  It'll terminate with NO_MORE_DOCS prematurely.  Interestingly, it _appears_ MVInnerScorer (multi-valued) was coded properly to not have this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org