ConstantScoreRangeQuery in Lucene

How is Lucene ConstantScoreRangeQuery better than the old RangeQuery ?

In which case should you use RangeQuery?

+2
source share
1 answer

According to the RangeQuery documentation in your link, the ConstantScoreRangeQuery:

  • faster than RangeQuery.
  • does not throw a BooleanQuery.TooManyClauses exception if the range of values ​​is large.
  • does not affect scoring based on the lack of individual terms that may correspond.

, , (, , , - , "" ). RangeQuery .

TrieRangeQuery, Contrib. , , Lucene 2.9. , .

+2