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

Michael McCandless commented on LUCENE-1483:
--------------------------------------------


{quote}
> I guess I can't get away with my new index calculation either: ords[i] = 
> ((-index << 1) - 3) / 2.0d; 
{quote}

I think you can use an int for the ords?  Now that we have subord,
when you get negative index back from binary search, you can set ord
to -index-1 which is the "lower bound", and then as long as subord is
at least 1 it should compare correctly.

Also, in your 2nd pass, if the list is length 1 then you can
immediately set subord to 1 and move on.

In your first pass, in the "else" clause (when the value was found in
the next segment) don't you need to set subord to 0?

> Change IndexSearcher to use MultiSearcher semantics for multiple subreaders
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-1483
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1483
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.9
>            Reporter: Mark Miller
>            Priority: Minor
>         Attachments: LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch, 
> LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch, 
> LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch, 
> LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch
>
>
> FieldCache and Filters are forced down to a single segment reader, allowing 
> for individual segment reloading on reopen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to