February 2017
Intermediate to advanced
696 pages
12h 24m
English
An extension to the concept of point is the shape. Elasticsearch provides a type that facilitates the management of arbitrary polygons: the GeoShape.
You need an up-and-running Elasticsearch installation as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
To be able to use advanced shape management, Elasticsearch requires two JAR libraries in its classpath (usually the lib directory):
To map a geo_shape type, a user must explicitly provide some parameters:
tree: This is the name of the PrefixTree implementation: geohash for GeohashPrefixTree and quadtree for QuadPrefixTree (default geohash)precision: This is used instead ...Read now
Unlock full access