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

Koji Sekiguchi edited comment on LUCENE-1959 at 10/10/09 12:48 AM:
-------------------------------------------------------------------

I added small fix. If we have 13 docs (docid=0,1,2,...,12) and numParts=3, 12th 
doc is missing with -seq mode. I changed this:

{code}
// above range
for (int j = hi; j < maxDoc; j++) {
   input.deleteDocument(j);
}
{code}

to:

{code}
// above range
if( i < numParts - 1 ){
  for (int j = hi; j < maxDoc; j++) {
     input.deleteDocument(j);
  }
}
{code}


      was (Author: koji):
    I added small fix. If we have 13 docs (docid=0,1,2,...,12) and numParts=3, 
12th doc is missing. I changed this:

{code}
// above range
for (int j = hi; j < maxDoc; j++) {
   input.deleteDocument(j);
}
{code}

to:

{code}
// above range
if( i < numParts - 1 ){
  for (int j = hi; j < maxDoc; j++) {
     input.deleteDocument(j);
  }
}
{code}

  
> 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, 
> mp-splitter3.patch, mp-splitter4.patch, mp-splitter5.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