Add optional storing of document numbers in term dictionary
-----------------------------------------------------------
Key: LUCENE-1278
URL: https://issues.apache.org/jira/browse/LUCENE-1278
Project: Lucene - Java
Issue Type: New Feature
Components: Index
Affects Versions: 2.3.1
Reporter: Jason Rutherglen
Priority: Minor
Add optional storing of document numbers in term dictionary. String index
field cache and range filter creation will be faster.
Example read code:
TermEnum termEnum = indexReader.terms(TermEnum.LOAD_DOCS);
do {
Term term = termEnum.term();
if (term == null || term.field() != field) break;
int[] docs = termEnum.docs();
} while (termEnum.next());
Example write code:
Document document = new Document();
document.add(new Field("tag", "dog", Field.Store.YES, Field.Index.UN_TOKENIZED,
Field.Term.STORE_DOCS));
indexWriter.addDocument(document);
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]