ElaticSearch build geo get query is extremely slow

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


ElaticSearch build geo get query is extremely slow



I need to search for polygons inside given point and return the documents.
I build a query as below.


long start = System.currentTimeMillis();

GeoShapeQueryBuilder filter = QueryBuilders.geoShapeQuery("fence",
new PointBuilder(111.868221, 10.906159));
filter.relation(ShapeRelation.INTERSECTS);

long end = System.currentTimeMillis() - start;



This query build takes around 400 milliseconds.
Why this is so slow? Any way to improve elasticsearch java geo queries ?



Thanks.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Makefile test if variable is not empty