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

Elmer van Chastelet commented on LUCENE-2919:
---------------------------------------------

This was exactly what I was looking for!

FTR, for this to work in Lucene 3.1.0 (and 3.2.0), only 2 calls to 
IOUtils.closeSafely(boolean suppressExceptions, Closeable... objects) need to 
be changed:

IOUtils.closeSafely(!success, reader) -> IOUtils.closeSafely(reader)
IOUtils.closeSafely(!success, w) -> IOUtils.closeSafely(w)
                
> IndexSplitter that divides by primary key term
> ----------------------------------------------
>
>                 Key: LUCENE-2919
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2919
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 4.0
>            Reporter: Jason Rutherglen
>            Assignee: Uwe Schindler
>            Priority: Minor
>             Fix For: 3.3, 4.0
>
>         Attachments: LUCENE-2919-3x.patch, LUCENE-2919-filter.patch, 
> LUCENE-2919-filter.patch, LUCENE-2919-filter.patch, LUCENE-2919.patch
>
>
> Index splitter that divides by primary key term.  The contrib 
> MultiPassIndexSplitter we have divides by docid, however to guarantee 
> external constraints it's sometimes necessary to split by a primary key term 
> id.  I think this implementation is a fairly trivial change.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to