Skip to content

Commit 74c4770

Browse files
committed
Changed QuadPrefixTree max levels to 29 and added defaults. Closes #21191
1 parent 17715ec commit 74c4770

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/reference/mapping/types/geo-shape.asciidoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ best tree_levels value to honor this precision. The value should be a
3232
number followed by an optional distance unit. Valid distance units
3333
include: `in`, `inch`, `yd`, `yard`, `mi`, `miles`, `km`, `kilometers`,
3434
`m`,`meters`, `cm`,`centimeters`, `mm`, `millimeters`.
35-
| `meters`
35+
| `50m`
3636

3737
|`tree_levels` |Maximum number of layers to be used by the PrefixTree.
3838
This can be used to control the precision of shape representations and
@@ -42,7 +42,7 @@ certain level of understanding of the underlying implementation, users
4242
may use the `precision` parameter instead. However, Elasticsearch only
4343
uses the tree_levels parameter internally and this is what is returned
4444
via the mapping API even if you use the precision parameter.
45-
| `50m`
45+
| various
4646

4747
|`strategy` |The strategy parameter defines the approach for how to
4848
represent shapes at indexing and search time. It also influences the
@@ -119,14 +119,14 @@ Geohashes are base32 encoded strings of the bits of the latitude and
119119
longitude interleaved. So the longer the hash, the more precise it is.
120120
Each character added to the geohash represents another tree level and
121121
adds 5 bits of precision to the geohash. A geohash represents a
122-
rectangular area and has 32 sub rectangles. The maximum amount of levels
123-
in Elasticsearch is 24.
122+
rectangular area and has 32 sub rectangles. The maximum number of levels
123+
in Elasticsearch is 24; the default is 9.
124124
* QuadPrefixTree - Uses a
125125
http://en.wikipedia.org/wiki/Quadtree[quadtree] for grid squares.
126126
Similar to geohash, quad trees interleave the bits of the latitude and
127127
longitude the resulting hash is a bit set. A tree level in a quad tree
128128
represents 2 bits in this bit set, one for each coordinate. The maximum
129-
amount of levels for the quad trees in Elasticsearch is 29.
129+
number of levels for the quad trees in Elasticsearch is 29; the default is 21.
130130

131131
[[spatial-strategy]]
132132
[float]

0 commit comments

Comments
 (0)