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

markrmil...@gmail.com edited comment on LUCENE-1483 at 12/14/08 4:20 PM:
---------------------------------------------------------------

bq. Or, better, we could add a "subord" to break the tie. That subord'd have to 
be computed by gathering all String values that sorted to the same "odd ord" 
and sorting them to assign subords.

That seems like a bit or work to manage. What if I just kept a separate double 
subords that holds the old mapping? If two slots are equal, we can fall down to 
that? We would have the whole new array, but the other way we have to track 
what maps to the same index, sort that, and then have a map or another array 
anyway. What do we save? We could have an int[] rather than a double[]? But a 
lot more juggling...

*EDIT*
Nm...that logic doesnt quite work...

*EDIT*

Or it does...man I have a scatterbrain and a half. I got it to work (at least 
partially - the tests pass). I'll now work on getting something up for you to 
test with. My main worry at this point is that I'm doing things inefficiently 
enough that its not a fair test :)

      was (Author: markrmil...@gmail.com):
    bq. Or, better, we could add a "subord" to break the tie. That subord'd 
have to be computed by gathering all String values that sorted to the same "odd 
ord" and sorting them to assign subords.

That seems like a bit or work to manage. What if I just kept a separate double 
subords that holds the old mapping? If two slots are equal, we can fall down to 
that? We would have the whole new array, but the other way we have to track 
what maps to the same index, sort that, and then have a map or another array 
anyway. What do we save? We could have an int[] rather than a double[]? But a 
lot more juggling...

*EDIT*
Nm...that logic doesnt quite work...
  
> 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
>
>
> 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