Geo filter not applied - geo_distance

Hi,

I have some data indexed in Elasticsearch.

Here's the mapping.


Here's the query I try to
execute. https://gist.github.com/jackdbernier/4121af86ec75bd0334ed

The problem is that all the data is being
returned. https://gist.github.com/jackdbernier/de1e41ac1a8d03e1ef4c

What am I doing wrong ?

Thanks

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hey there,

I have just created a gist to reproduce your issue, and to me it is looking
fine. Can you please create a complete recreation and gist it?
here is mine: Geo location reproduction. · GitHub

please check if I have done something wrong and correct if possible and
create a gist to make sure there is not a bug on our side.

Thanks for your help!

--Alex

On Wed, Apr 24, 2013 at 10:12 PM, Jacques-Olivier D. Bernier <
jdesjardinsbernier@gmail.com> wrote:

Hi,

I have some data indexed in Elasticsearch.

Here's the mapping.
https://gist.github.com/jackdbernier/d601bb53b92516fed3a6
Here's the query I try to execute.
https://gist.github.com/jackdbernier/4121af86ec75bd0334ed

The problem is that all the data is being returned.
https://gist.github.com/jackdbernier/de1e41ac1a8d03e1ef4c

What am I doing wrong ?

Thanks

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks for the response.

Using your script it works. I was using elasticsearch-head plugin and it
occurs that and I was performing a GET request instead of POST. In that
case the plugging put the data in the query string and not in the body. So
the request looks like this:

http://localhost:9200/data/test/_search?{"query":{"filtered":{"query":{"match_all":{}},%22filter%22:{%22geo_distance%22:{%22distance%22:%220.1km%22,%22location%22:{%22lat%22:46.884106,%22lon%22:-71.377042}}}}}}

Thanks again, I'll be more careful next time.
Jacques-Olivier D. Bernier

On Friday, 26 April 2013 12:09:37 UTC+2, Alexander Reelsen wrote:

Hey there,

I have just created a gist to reproduce your issue, and to me it is
looking fine. Can you please create a complete recreation and gist it?
here is mine: Geo location reproduction. · GitHub

please check if I have done something wrong and correct if possible and
create a gist to make sure there is not a bug on our side.

Thanks for your help!

--Alex

On Wed, Apr 24, 2013 at 10:12 PM, Jacques-Olivier D. Bernier <
jdesjardi...@gmail.com <javascript:>> wrote:

Hi,

I have some data indexed in Elasticsearch.

Here's the mapping.
https://gist.github.com/jackdbernier/d601bb53b92516fed3a6
Here's the query I try to execute.
https://gist.github.com/jackdbernier/4121af86ec75bd0334ed

The problem is that all the data is being returned.
https://gist.github.com/jackdbernier/de1e41ac1a8d03e1ef4c

What am I doing wrong ?

Thanks

--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.