7

I tried understanding precisionStep at several places but cannot fully understand its concept. So, please explain what it is about, in very simple words.

2
  • @downvoter please be kind enough to state a reason. Is it a very stupid question, may be for experts but not for all :) Oct 5, 2013 at 15:10
  • Check "How it works" at NumericRangeQuery Javadoc
    – cheffe
    Jun 30, 2014 at 8:36

1 Answer 1

6

The precisionStep is a count, after how many bits of the indexed value a new term starts. The original value is always indexed in full precision. Precision step of 4 for a 32 bit value(integer) means terms with these bit counts: All 32, left 28, left 24, left 20, left 16, left 12, left 8, left 4 bits of the value (total 8 terms/value). A precision step of 26 would index 2 terms: all 32 bits and one single term with the remaining 6 bits from the left.

1
  • Can u please provide an example?
    – Gibbs
    Apr 27, 2020 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.