Search in sources :

Example 1 with GeoPointInBBoxQuery

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

the class PlainHighlighterTests method testGeoPointDistanceQueryHighlighting.

public void testGeoPointDistanceQueryHighlighting() throws IOException, InvalidTokenOffsetsException {
    Query geoQuery = new GeoPointInBBoxQuery("geo_point", -64.92354174306496, 61.10078883158897, -170.15625, 118.47656249999999);
    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) GeoPointInBBoxQuery(org.apache.lucene.spatial.geopoint.search.GeoPointInBBoxQuery)

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