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

Mark Miller commented on LUCENE-1483:
-------------------------------------

Okay, I just full on did it inefficiently, and maybe I can work backwards a 
little. Seems to be solid.

I just collect the old ords by making a map with the mapped to index as the 
key. The map has List values and when a list gets more than one entry, the 
entry is added to a morethanone set. After mapping all the ords, i go through 
the morethanone set and sort each list - each subord is then set based on its 
index in the sorted list.

We already knew that was easy enough - I just think its probably on the 
terribly inefficient side. Now to think about whacking pieces off. It just 
makes me not very hopeful to start at something so slow. And still the double 
ords :( Perhaps the negative int could still come into play though. 

Way too many little objects being made...

> 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
>
>
> 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