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

Uwe Schindler commented on LUCENE-1959:
---------------------------------------

Ah ok, I didn't look into the test failure yesterday (was too late in the 
evening), I only wanted to make a quick design and if it would generally work.
But you are right, the numDocs() return value is incorrect, leading to a 
failure in this test. But as the test pass in your test environment, the 
assertion in the SegmentMerger seems not important for functionality. So in 
general my code and your first code would work correct. I do not know how 
costly the initial building of the BitSet used for the input reader's deleted 
docs is, but one possibility would be to only build/use the additional bitset, 
if hasDeletions() on the original index returns true.

Thanks for clarifying.

> Index Splitter
> --------------
>
>                 Key: LUCENE-1959
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1959
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Index
>    Affects Versions: 2.9
>            Reporter: Jason Rutherglen
>            Assignee: Michael McCandless
>            Priority: Trivial
>             Fix For: 3.0
>
>         Attachments: LUCENE-1959.patch, LUCENE-1959.patch, 
> mp-splitter-inline.patch, mp-splitter.patch, mp-splitter2.patch
>
>
> If an index has multiple segments, this tool allows splitting those segments 
> into separate directories.  

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