Enabling geohash indexing on Geo Point type

Hi,

I have defined the mapping below on my index:

{
"poi" : {
"properties" : {
"location" : {
"type" : "geo_point",
"geohash" : true
},
...
}
}
}

I'm now trying to make a query where I search by geohash, but I can't
figure out which field to reference. Also, what kind of queries am I
allowed to do on the geohash?

Thanks,
Gianluca

--
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.

The field you'd search is "location" and the docs on the geo shape filter
are here:

Although, beware - the docs should be updated soon. "within" and "disjoint"
are no longer supported as their implementation was buggy

clint

On Wed, Mar 6, 2013 at 3:55 PM, Gian Luca Ortelli <
gianluca.ortelli@trifork.nl> wrote:

Hi,

I have defined the mapping below on my index:

{
"poi" : {
"properties" : {
"location" : {
"type" : "geo_point",
"geohash" : true
},
...
}
}
}

I'm now trying to make a query where I search by geohash, but I can't
figure out which field to reference. Also, what kind of queries am I
allowed to do on the geohash?

Thanks,
Gianluca

--
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.

Hi,

the closest example that I found in the docs is below:

{
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"geo_shape": {
"location": {
"shape": {
"type": "envelope",
"coordinates":[[-45,45],[45,-45]]
},
"relation": "within"
}
}
}
}
}

What I have available client side is a geohash value, describing the cell I
want to search in. I might translate that to a pair of coordinates, but is
there a way to give the value directly in the filter?

Thanks,
Gianluca

On Wednesday, March 6, 2013 7:29:18 PM UTC+1, Clinton Gormley wrote:

The field you'd search is "location" and the docs on the geo shape filter
are here:
Elasticsearch Platform — Find real-time answers at scale | Elastic

Although, beware - the docs should be updated soon. "within" and
"disjoint" are no longer supported as their implementation was buggy

clint

On Wed, Mar 6, 2013 at 3:55 PM, Gian Luca Ortelli <gianluca...@trifork.nl<javascript:>

wrote:

Hi,

I have defined the mapping below on my index:

{
"poi" : {
"properties" : {
"location" : {
"type" : "geo_point",
"geohash" : true
},
...
}
}
}

I'm now trying to make a query where I search by geohash, but I can't
figure out which field to reference. Also, what kind of queries am I
allowed to do on the geohash?

Thanks,
Gianluca

--
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.

I don't think you can combine geohashes with geo-shapes, at least not yet.

Perhaps open an issue requesting it?

Clint

On Fri, Mar 8, 2013 at 10:58 AM, Gian Luca Ortelli <
gianluca.ortelli@trifork.nl> wrote:

Hi,

the closest example that I found in the docs is below:

{
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"geo_shape": {
"location": {
"shape": {
"type": "envelope",
"coordinates":[[-45,45],[45,-45]]
},
"relation": "within"
}
}
}
}
}

What I have available client side is a geohash value, describing the cell
I want to search in. I might translate that to a pair of coordinates, but
is there a way to give the value directly in the filter?

Thanks,
Gianluca

On Wednesday, March 6, 2013 7:29:18 PM UTC+1, Clinton Gormley wrote:

The field you'd search is "location" and the docs on the geo shape filter
are here: http://www.Elasticsearch Platform — Find real-time answers at scale | Elastic
reference/query-dsl/geo-shape-**filter.htmlhttp://www.elasticsearch.org/guide/reference/query-dsl/geo-shape-filter.html

Although, beware - the docs should be updated soon. "within" and
"disjoint" are no longer supported as their implementation was buggy

clint

On Wed, Mar 6, 2013 at 3:55 PM, Gian Luca Ortelli <gianluca...@trifork.nl

wrote:

Hi,

I have defined the mapping below on my index:

{
"poi" : {
"properties" : {
"location" : {
"type" : "geo_point",
"geohash" : true
},
...
}
}
}

I'm now trying to make a query where I search by geohash, but I can't
figure out which field to reference. Also, what kind of queries am I
allowed to do on the geohash?

Thanks,
Gianluca

--
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.

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

--
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.