Geo Distance Facet - ElasticsearchParseException

Hello All,

I've been facing problem with geo_distance facet since few hours.

Error is: ElasticsearchParseException[field must be either 'lat', 'lon' or
'geohash']

I am not sure, if this is bug or I am making a silly mistake here. Please
guide in right direction.

Gist: https://gist.github.com/mastermunj/a58298bc56615b54d643

Tested On: 1.2.0, 1.2.1

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6ec869ad-c32a-4e85-ab60-131bca8623fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey,

your ranges specification is broken, you need to use an array of objects.
Also, please try to use aggregations if possible, as they are the successor
of facets.

--Alex

On Thu, Jun 5, 2014 at 10:37 AM, Munjal Dhamecha mastermunj@gmail.com
wrote:

Hello All,

I've been facing problem with geo_distance facet since few hours.

Error is: ElasticsearchParseException[field must be either 'lat', 'lon' or
'geohash']

I am not sure, if this is bug or I am making a silly mistake here. Please
guide in right direction.

Gist: ElasticsearchParseException[field must be either 'lat', 'lon' or 'geohash'] · GitHub

Tested On: 1.2.0, 1.2.1

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/6ec869ad-c32a-4e85-ab60-131bca8623fb%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/6ec869ad-c32a-4e85-ab60-131bca8623fb%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_wd8EctDuvpA7T-89O7P5Pjhk2oYhgqh5tAcDMMJL%2BQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Oops! That one was very silly overlook mistake. Thank you for pointing it
out.

Yes, I moved to aggregations with few failed tries on facets.

On Monday, 16 June 2014 17:57:34 UTC+5:30, Alexander Reelsen wrote:

Hey,

your ranges specification is broken, you need to use an array of objects.
Also, please try to use aggregations if possible, as they are the successor
of facets.

--Alex

On Thu, Jun 5, 2014 at 10:37 AM, Munjal Dhamecha <maste...@gmail.com
<javascript:>> wrote:

Hello All,

I've been facing problem with geo_distance facet since few hours.

Error is: ElasticsearchParseException[field must be either 'lat', 'lon'
or 'geohash']

I am not sure, if this is bug or I am making a silly mistake here. Please
guide in right direction.

Gist: ElasticsearchParseException[field must be either 'lat', 'lon' or 'geohash'] · GitHub

Tested On: 1.2.0, 1.2.1

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/6ec869ad-c32a-4e85-ab60-131bca8623fb%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/6ec869ad-c32a-4e85-ab60-131bca8623fb%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/bf1cc3b1-f900-4e65-a113-cf22a6778f56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.