Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
2.3.1
-
None
-
None
-
New
Description
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);