Range query

Range queries can be applied to fields with datatypes that have natural ordering. For example, integers, logs, and dates have a natural order. There is no ambiguity in deciding whether one value is less, equal to, or greater than the other values. Because of this well-defined datatypes order, a range query can be applied.

We will look at how to apply range queries in the following ways:

  • On numeric types
  • With score boosting
  • On dates

Let's look at the most typical range query on a numeric field.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.116.146