[ 
https://issues.apache.org/jira/browse/LUCENE-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler updated LUCENE-2919:
----------------------------------

    Attachment: LUCENE-2919-filter.patch

Here patch that changes PKIndexSplitter to use a Filter of "allowed" documents.

Its yet hardcoded to be a TermRangeFilter, but a second flexible version could 
e.g. also use NumericRangeFilter, WildCardFilter or whatever.

The test in the committed code had a bug (the second half of the index had to 
contain 1 more document, maybe that was the bug Mike mentioned or introduced?). 
The documentation says: If the midTerm is in the index, its document will be in 
the second index.

I think the test should also be improved to check indexes with deleted 
documents.

Maybe the Filter could automatically be negated by a boolean parameter to the 
FilterIndexReader's ctor.

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