Search in sources :

Example 1 with GeoPointDistanceQuery

use of org.apache.lucene.spatial.geopoint.search.GeoPointDistanceQuery in project elasticsearch by elastic.

the class PlainHighlighterTests method testGeoPointInBBoxQueryHighlighting.

public void testGeoPointInBBoxQueryHighlighting() throws IOException, InvalidTokenOffsetsException {
    Query geoQuery = new GeoPointDistanceQuery("geo_point", -64.92354174306496, -170.15625, 5576757);
    checkGeoQueryHighlighting(geoQuery);
}
Also used : Query(org.apache.lucene.search.Query) PhraseQuery(org.apache.lucene.search.PhraseQuery) GeoPointDistanceQuery(org.apache.lucene.spatial.geopoint.search.GeoPointDistanceQuery) TermQuery(org.apache.lucene.search.TermQuery) BooleanQuery(org.apache.lucene.search.BooleanQuery) GeoPointInBBoxQuery(org.apache.lucene.spatial.geopoint.search.GeoPointInBBoxQuery) GeoPointInPolygonQuery(org.apache.lucene.spatial.geopoint.search.GeoPointInPolygonQuery) GeoPointDistanceQuery(org.apache.lucene.spatial.geopoint.search.GeoPointDistanceQuery)

Aggregations

BooleanQuery (org.apache.lucene.search.BooleanQuery)1 PhraseQuery (org.apache.lucene.search.PhraseQuery)1 Query (org.apache.lucene.search.Query)1 TermQuery (org.apache.lucene.search.TermQuery)1 GeoPointDistanceQuery (org.apache.lucene.spatial.geopoint.search.GeoPointDistanceQuery)1 GeoPointInBBoxQuery (org.apache.lucene.spatial.geopoint.search.GeoPointInBBoxQuery)1 GeoPointInPolygonQuery (org.apache.lucene.spatial.geopoint.search.GeoPointInPolygonQuery)1