Issue Details (XML | Word | Printable)

Key: LUCENE-1278
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Jason Rutherglen
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

Add optional storing of document numbers in term dictionary

Created: 02/May/08 11:56 AM   Updated: 22/Jul/08 12:56 PM
Return to search
Component/s: Index
Affects Version/s: 2.3.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works lucene.1278.5.4.2008.patch 2008-05-04 10:41 PM Jason Rutherglen 171 kB
Text File Licensed for inclusion in ASF works lucene.1278.5.5.2008.2.patch 2008-05-05 12:51 PM Jason Rutherglen 48 kB
Text File Licensed for inclusion in ASF works lucene.1278.5.5.2008.patch 2008-05-05 09:40 AM Jason Rutherglen 211 kB
Text File Licensed for inclusion in ASF works lucene.1278.5.7.2008.patch 2008-05-07 10:01 PM Jason Rutherglen 93 kB
Text File Licensed for inclusion in ASF works lucene.1278.5.7.2008.test.patch 2008-05-07 10:01 PM Jason Rutherglen 3 kB
Java Source File TestTermEnumDocs.java 2008-05-05 05:30 PM Jason Rutherglen 4 kB

Lucene Fields: New


 Description  « Hide
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);


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.