@@ -4,7 +4,7 @@ When dealing with numbers in this chapter, we have so far searched for only
4
4
exact numbers. ((("structured search", "ranges"))) In practice, filtering on ranges is often more useful. For
5
5
example, you might want to find all products with a price greater than $20 and less than $40.
6
6
7
- In SQL terms, a range can be expressed as:
7
+ In SQL terms, a range can be expressed as follows :
8
8
9
9
[source,sql]
10
10
--------------------------------------------------
@@ -13,7 +13,7 @@ FROM products
13
13
WHERE price BETWEEN 20 AND 40
14
14
--------------------------------------------------
15
15
16
- Elasticsearch has a range filter, ((("range filters", "using on numbers"))) which, unsurprisingly, allows you to
16
+ Elasticsearch has a ` range` filter, ((("range filters", "using on numbers"))) which, unsurprisingly, allows you to
17
17
filter ranges:
18
18
19
19
[source,js]
@@ -26,17 +26,17 @@ filter ranges:
26
26
}
27
27
--------------------------------------------------
28
28
29
- The range filter supports both inclusive and exclusive ranges, through
29
+ The ` range` filter supports both inclusive and exclusive ranges, through
30
30
combinations of the following options:
31
31
32
32
[horizontal]
33
- gt:: `>` greater than
34
- lt:: `<` less than
35
- gte: : `>=` greater than or equal to
36
- lte: : `<=` less than or equal to
33
+ * `gt` : `>` greater than
34
+ * `lt` : `<` less than
35
+ * ` gte` : `>=` greater than or equal to
36
+ * ` lte` : `<=` less than or equal to
37
37
38
38
39
- .Example range filter
39
+ .Here is an example range filter:
40
40
[source,js]
41
41
--------------------------------------------------
42
42
GET /my_store/products/_search
0 commit comments