use of org.apache.lucene.spatial.geopoint.search.GeoPointInPolygonQuery in project elasticsearch by elastic.
the class PlainHighlighterTests method testGeoPointInPolygonQueryHighlighting.
public void testGeoPointInPolygonQueryHighlighting() throws IOException, InvalidTokenOffsetsException {
double[] polyLats = new double[] { 0, 60, 0, 0 };
double[] polyLons = new double[] { 0, 60, 90, 0 };
Query geoQuery = new GeoPointInPolygonQuery("geo_point", polyLats, polyLons);
checkGeoQueryHighlighting(geoQuery);
}
Aggregations