I am an ES beginner possibly migrating from Solr and I am trying to
apply a geo distance query term to my ES query, but I cant seem to
figure out how to do that. In my particular case I want the geo
radial bounding box to apply to all my facets and it appears that
adding the geoDistanceFilter() via setFilter() does not apply to
facets (which I think is normal). I was looking for something like
QueryBuilders.geoDistanceQuery() in the javaApi, but that doesnât seem
to exist.
I suggest you gist an example of the query that you're using, so we can
figure out where you're going wrong. See
If you want to apply filters just for specific facets, then you can set a filter on the relevant facets. In Java, each facet has a facetFitler method that accepts a filter (can be a geo bounding box filter).
On Monday, May 9, 2011 at 10:59 PM, Clinton Gormley wrote:
Hi Ben
I am an ES beginner possibly migrating from Solr and I am trying to
apply a geo distance query term to my ES query, but I cant seem to
figure out how to do that. In my particular case I want the geo
radial bounding box to apply to all my facets and it appears that
adding the geoDistanceFilter() via setFilter() does not apply to
facets (which I think is normal). I was looking for something like
QueryBuilders.geoDistanceQuery() in the javaApi, but that doesnât seem
to exist.
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.