You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2011/06/18 02:17:47 UTC
[jira] [Updated] (LUCENE-2919) IndexSplitter that divides by
primary key term
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org