[
https://issues.apache.org/jira/browse/LUCENE-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615611#action_12615611
]
Jason Rutherglen commented on LUCENE-1278:
------------------------------------------
In order for the proposal I mentioned to work, DocumentsWriter.appendPostings
needs to be changed to store the docs in an IntArrayList or something or the
sort, then decide where to store the postings.
I started working on LUCENE-1292 to address this problem outside of reworking
core Lucene. LUCENE-1278 only addresses half of my problem. I also want
realtime updates to an in memory term index. The most efficient way to achieve
this is what is outlined in LUCENE-1292.
> 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
> Attachments: lucene.1278.5.4.2008.patch,
> lucene.1278.5.5.2008.2.patch, lucene.1278.5.5.2008.patch,
> lucene.1278.5.7.2008.patch, lucene.1278.5.7.2008.test.patch,
> TestTermEnumDocs.java
>
>
> Add optional storing of document numbers in term dictionary. String index
> field cache and range filter creation will be faster.
> Example read code:
> {noformat}
> 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());
> {noformat}
> Example write code:
> {noformat}
> Document document = new Document();
> document.add(new Field("tag", "dog", Field.Store.YES,
> Field.Index.UN_TOKENIZED, Field.Term.STORE_DOCS));
> indexWriter.addDocument(document);
> {noformat}
--
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]