lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-3824) TermOrdVal/DocValuesComparator does too much work in compareBottom
Date Sun, 26 Feb 2012 17:44:48 GMT

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

Michael McCandless updated LUCENE-3824:
---------------------------------------

    Attachment: LUCENE-3824.patch

Patch... I think it's ready.
                
> TermOrdVal/DocValuesComparator does too much work in compareBottom
> ------------------------------------------------------------------
>
>                 Key: LUCENE-3824
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3824
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 3.6, 4.0
>
>         Attachments: LUCENE-3824.patch
>
>
> We now have logic to fall back to by-value comparison, when the bottom
> slot is not from the current reader.
> But this is silly, because if the bottom slot is from a different
> reader, it means the tie-break case is not possible (since the current
> reader didn't have the bottom value), so when the incoming ord equals
> the bottom ord we should always return x > 0.
> I added a new random string sort test case to TestSort...
> I also renamed DocValues.SortedSource.getByValue -> getOrdByValue and
> cleaned up some whitespace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


Mime
View raw message