Geo_shapes and geo queries - can't figure out how to use them

It should work on windows, barring platform specific issues with packaging
perhaps.

Jilles

On Thursday, March 14, 2013 6:28:24 PM UTC+1, Martin Bažík wrote:

i tried both polygon and Polygon, there was no difference.

now i see, that i miss one nested array. there's so mnay brackets :slight_smile:

i will tri it right now.

i have never used maven before, can i compile es also on windows?

Dňa štvrtok, 14. marca 2013 17:20:37 UTC+1 Jilles van Gurp napísal(-a):

Btw. compilation is pretty easy if you know how to use maven.

If not, install maven 3.x, make sure it is on your path (run maven
-version to check)

Then checkout the github project for Elasticsearch and in the root type
mvn clean install -DskipTests=true

Skipping the tests is usually a good idea because they take quite a bit
of time to run.

That should compile things and create distribution packages in the target
dir.

Jilles

On Wednesday, March 13, 2013 12:14:09 PM UTC+1, Martin Bažík wrote:

i've been using elasticsearch a few months now to index regular data.
Now i want to index some geospatial data, but can't figure it out.

i'm using elasticsearch 0.90 beta

the documents and query definition can be seen here
documents.json · GitHub

the second document and query are taken from documentation examples. i'm
not sure whether location is a required name or some special property or i
can name the field anyhow i want.

the mapping looks like this

test: {

properties: {

location: {

  type: geo_shape

}

}

}

when i run the query i get a Parse Failure [Failed to parse source
[{"query":{"filtered":{"query":{"match_all":},"filter":{"geo_shape":{"location":{"shape":{"type":"envelope","coordinates":[[45,17],[49,18]]},"relation":"within"}}}}},"from":0,"size":15}]]];
nested: IllegalArgumentException[no terms provided]; }]'

geo is the name of the index. the filter must be wrong, because when i
run the query without the filter i get a list of all documents stored

what am i doing wrong and how i can fix it?

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.