You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2009/04/14 18:58:15 UTC

[jira] Commented: (LUCENE-1603) Changes for TrieRange in FilteredTermEnum and MultiTermQuery improvement

    [ https://issues.apache.org/jira/browse/LUCENE-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698831#action_12698831 ] 

Michael McCandless commented on LUCENE-1603:
--------------------------------------------

Patch looks good.  Should we allow lastNumberOfTerms to be the sum of all invocations?  (Instead of clearing it per segment)?  And maybe add a resetLastNumberOfTerms, in case one wants to re-use a MultiTermQuery and recheck that count.

> Changes for TrieRange in FilteredTermEnum and MultiTermQuery improvement
> ------------------------------------------------------------------------
>
>                 Key: LUCENE-1603
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1603
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.4, 2.9
>            Reporter: Uwe Schindler
>             Fix For: 2.9
>
>         Attachments: LUCENE-1603.patch
>
>
> This is a patch, that is needed for the MultiTermQuery-rewrite of TrieRange (LUCENE-1602):
> - Make the private members protected, to have access to them from the very special TrieRangeTermEnum 
> - Fix a small inconsistency (docFreq() now only returns a value, if a valid term is existing)
> - Improvement of MultiTermFilter.getDocIdSet to return DocIdSet.EMPTY_DOCIDSET, if the TermEnum is empty (less memory usage) and faster.
> - Add the getLastNumberOfTerms() to MultiTermQuery for statistics on different multi term queries and how may terms they affect, using this new functionality, the improvement of TrieRange can be shown (extract from test case there, 10000 docs index, long values):
> {code}
> [junit] Average number of terms during random search on 'field8':
> [junit]  Trie query: 244.2
> [junit]  Classical query: 3136.94
> [junit] Average number of terms during random search on 'field4':
> [junit]  Trie query: 38.3
> [junit]  Classical query: 3018.68
> [junit] Average number of terms during random search on 'field2':
> [junit]  Trie query: 18.04
> [junit]  Classical query: 3539.42
> {code}
> All core tests pass.

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org