Affects Version/s: 2.4, 2.9
Fix Version/s: 2.9
Lucene Fields:New, Patch Available
This is a patch, that is needed for the MultiTermQuery-rewrite of TrieRange (
- 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):
All core tests pass.