[
https://issues.apache.org/jira/browse/LUCENE-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051386#comment-13051386
]
Uwe Schindler commented on LUCENE-2919:
---------------------------------------
I would implement this stuff a little bit more flexible:
You could use a standard Filter to do the split, e.g. TermRangeFilter and use
its returned DocIdSet as BitSet (if Filter returns no BitSet, can be checked by
instanceof Bits, use OpenBitSetDISI as wrapper - like CachingWrapperFilter).
This makes it more flexible, as this Filter again has some code duplication
with the other IndexSplitter but is again very specific. A simple tool, let it
be an DocumentExtractor, could extract parts of a bigger Index using any filter.
How about that?
> 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
> Priority: Minor
> Attachments: 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.
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]