Unable to get geosearches to work

Hi,

I've been trying to get the geosearches to work, but to no avail.

I've summarized what I've done so far in this gist.

I'm using ES 0.16.2.

I'm quite new to the world of ES / lucene, so I've probably messed up. Can
anyone point me in the right direction?

thanks in advance

lotrak

Hi Christofer

I've summarized what I've done so far in this gist.

Trying to get geo searches to work · GitHub

Nice gist++

You're searching on the wrong field. Your field name is 'pin' not
'location'

clint

2011/6/2 Clinton Gormley clinton@iannounce.co.uk

Hi Christofer

I've summarized what I've done so far in this gist.

Trying to get geo searches to work · GitHub

Nice gist++

You're searching on the wrong field. Your field name is 'pin' not
'location'

clint

I tried using "pin.location" as on the es-web (
Elasticsearch Platform — Find real-time answers at scale | Elastic),
but it got me: "QueryParsingException[[twitter] failed to find geo_point
field [pin.location]]; }]","status":500}"

Alas, I get the same exception for 'pin' :frowning:

lotrak

Several problems, the mapping definition is incorrect, and the query for 20km is not enough in terms of distance to include the relevant point. Here is a gist with the correct mapping: gist:1004704 · GitHub.

On Thursday, June 2, 2011 at 6:49 PM, Christofer Wallén wrote:

2011/6/2 Clinton Gormley <clinton@iannounce.co.uk (mailto:clinton@iannounce.co.uk)>

Hi Christofer

I've summarized what I've done so far in this gist.

Trying to get geo searches to work · GitHub

Nice gist++

You're searching on the wrong field. Your field name is 'pin' not
'location'

clint

I tried using "pin.location" as on the es-web (Elasticsearch Platform — Find real-time answers at scale | Elastic), but it got me: "QueryParsingException[[twitter] failed to find geo_point field [pin.location]]; }]","status":500}"

Alas, I get the same exception for 'pin' :frowning:

lotrak

Thanks for the rapid response guys! You rock!

I knew i was missing something crucial. I thought adding 'tweet' to the url
would let me omit it from postbody. Changing the mapping according to the
gist is making my day.

Christofer

2011/6/2 Shay Banon shay.banon@elasticsearch.com

Several problems, the mapping definition is incorrect, and the query for
20km is not enough in terms of distance to include the relevant point. Here
is a gist with the correct mapping: gist:1004704 · GitHub.

On Thursday, June 2, 2011 at 6:49 PM, Christofer Wallén wrote:

2011/6/2 Clinton Gormley clinton@iannounce.co.uk

Hi Christofer

I've summarized what I've done so far in this gist.

Trying to get geo searches to work · GitHub

Nice gist++

You're searching on the wrong field. Your field name is 'pin' not
'location'

clint

I tried using "pin.location" as on the es-web (
Elasticsearch Platform — Find real-time answers at scale | Elastic),
but it got me: "QueryParsingException[[twitter] failed to find geo_point
field [pin.location]]; }]","status":500}"

Alas, I get the same exception for 'pin' :frowning:

lotrak