Some questions about geohash


(Damir Gaynetdinov) #1

Hello.

  1. Does geohash_cell filter support precision as distance? For example:

"filter": {
"geohash_cell": {
"precision": "810m",
"mapbounds_center": {
"lat": 41.890411,
"lon": 12.493473
},
"neighbors": true
}
}

Example
at http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-geohash-cell-filter.html#query-dsl-geohash-cell-filter
has precision as integer(prefix size).

  1. Does geo_point type with geohash enabled support different precision for
    different records? For example one record would have

location{precision: "850m", "lat":41.8901541870786,"lon":12.4923992156982}
and another record in the same index would have

location{precision: "450m", "lat":51.89014541870786,"lon":30.442359215653}

Thank you so much!

--
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/8499d7d7-0f57-460e-9c19-4ad029600c97%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #2

Hi

  1. Yes, it does.
  2. The precision is needed in geo shapes only, not in geo points - geo
    points only have a geohash_precisions.

--Alex

On Fri, Dec 13, 2013 at 9:50 AM, Damir Gaynetdinov <
damir.gaynetdinov@gmail.com> wrote:

Hello.

  1. Does geohash_cell filter support precision as distance? For example:

"filter": {
"geohash_cell": {
"precision": "810m",
"mapbounds_center": {
"lat": 41.890411,
"lon": 12.493473
},
"neighbors": true
}
}

Example at
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-geohash-cell-filter.html#query-dsl-geohash-cell-filterhas precision as integer(prefix size).

  1. Does geo_point type with geohash enabled support different precision
    for different records? For example one record would have

location{precision: "850m", "lat":41.8901541870786,"lon":12.4923992156982}
and another record in the same index would have

location{precision: "450m", "lat":51.89014541870786,"lon":30.442359215653}

Thank you so much!

--
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/8499d7d7-0f57-460e-9c19-4ad029600c97%40googlegroups.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM801RR0v47XCuyuO%3DgA8d%3DtnJZgMObrGOKLdP05KVHjJw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3