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

Michael McCandless updated LUCENE-1483:
---------------------------------------

    Attachment: LUCENE-1483.patch

OK new patch finally:

  * Fixed a few small things YourKit uncovered, eg the private
    binarySearch() method was inserting extra run-time access check
    method so I changed it to package protected.

  * I changed ComparatorPolicy.nextComparator -> nextReader, making it
    that method's job to possibly switch comparators as well as call
    setNextReader internally.  This allows us to pass in the
    sub-reader when we init a new comparator.

  * Improved TestStressSort some more.

  * I made a new ORDDEM2 that does not convert slots when comparing,
    but does convert the bottom slot.  So it uses ORD in
    compareBottom, and ORD comparison between slots if the slots have
    the same gen, else compare-by-value.  Also, when converting, it
    bounds the binarySearch by using bottomOrd.  This seems to give
    better performance in the high-segment-count, large-queue-size,
    few hits cases, and comparable performance in other cases.

I think for a custom sort we should allow user to pass in a ComparatorPolicy?


> Change IndexSearcher multisegment searches to search each individual segment 
> using a single HitCollector
> --------------------------------------------------------------------------------------------------------
>
>                 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-partial.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, 
> 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, sortBench.py, sortCollate.py
>
>
> 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