BaseGeoPointTestCase
Abstract class to do basic tests for a geospatial impl (high level fields and queries) NOTE: This test focuses on geospatial (distance queries, polygon queries, etc) indexing and search, not any underlying storage format or encoding: it merely supplies two hooks for the encoding so that tests can be exact. The stretch goal is for this test to be so thorough in testing a new geo impl that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given geo impl that this test fails to catch then this test needs to be improved!
Functions
Add a single point and search for it in a box
null field name not allowed
test we can search for a point
distance query should not accept invalid lat/lon as origin
Inf distance queries are not allowed
NaN distance queries are not allowed
negative distance queries are not allowed
null field name not allowed
Valid values that should not cause exception
Inf: illegal
NaN: illegal
Invalid values
test we can search for a multi-polygon
test we can search for a polygon
test we can search for a polygon with a hole (but still includes the doc)
test we can search for a polygon with a hole (that excludes the doc)
null field name not allowed
Run a few iterations with just 10 docs, hopefully easy to debug
Runs with thousands of docs
see https://issues.apache.org/jira/browse/LUCENE-6905
Explicitly large