public class GeohashCellQuery extends Object
GeoPoints by their geohashes. Basically the a
Geohash prefix is defined by the filter and all geohashes that are matching this
prefix will be returned. The neighbors flag allows to filter
geohashes that surround the given geohash. In general the neighborhood of a
geohash is defined by its eight adjacent cells.GeohashCellQuery is defined as:
"geohash_bbox" {
"field":"location",
"geohash":"u33d8u5dkx8k",
"neighbors":false
}
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
GeohashCellQuery.Builder
Builder for a geohashfilter.
|
static class |
GeohashCellQuery.Parser |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
NAME |
static String |
NEIGHBORS |
static String |
PRECISION |
| コンストラクタと説明 |
|---|
GeohashCellQuery() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static org.apache.lucene.search.Query |
create(QueryParseContext context,
BaseGeoPointFieldMapper.GeoPointFieldType fieldType,
String geohash,
List<CharSequence> geohashes)
Create a new geohash filter for a given set of geohashes.
|
public static org.apache.lucene.search.Query create(QueryParseContext context, BaseGeoPointFieldMapper.GeoPointFieldType fieldType, String geohash, @Nullable List<CharSequence> geohashes)
context - Context of the filterfieldType - field mapper for geopointsgeohash - mandatory geohashgeohashes - optional array of additional geohashesCopyright © 2009–2016. All rights reserved.