hi all,i have a question
how can i use geo search with RestClient??
no interface find in RestClient,and i use the elasticsearch-rest-high-level-client:6.6.1
can any one help me!
hi all,i have a question
how can i use geo search with RestClient??
no interface find in RestClient,and i use the elasticsearch-rest-high-level-client:6.6.1
can any one help me!
The search interface in the high level client is generic:
https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.6/java-rest-high-search.html
On the QueryBuilders
you can find all geo queries you can perform. For example:
SearchRequest searchRequest = new SearchRequest();
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
searchSourceBuilder.query(QueryBuilders.geoIntersectionQuery("field", shapeBuilder));
searchRequest.source(searchSourceBuilder);
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.