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!

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
open fun testAllLatEqual()
Link copied to clipboard
open fun testAllLonEqual()
Link copied to clipboard
open fun testBoxBasics()

Add a single point and search for it in a box

Link copied to clipboard
Link copied to clipboard
open fun testBoxNull()

null field name not allowed

Link copied to clipboard

test we can search for a point

Link copied to clipboard

distance query should not accept invalid lat/lon as origin

Link copied to clipboard
open fun testDistanceInf()

Inf distance queries are not allowed

Link copied to clipboard
open fun testDistanceNaN()

NaN distance queries are not allowed

Link copied to clipboard

negative distance queries are not allowed

Link copied to clipboard
open fun testDistanceNull()

null field name not allowed

Link copied to clipboard
open fun testEquals()
Link copied to clipboard

Valid values that should not cause exception

Link copied to clipboard

Inf: illegal

Link copied to clipboard

NaN: illegal

Link copied to clipboard

Invalid values

Link copied to clipboard
Link copied to clipboard

test we can search for a multi-polygon

Link copied to clipboard
open fun testMultiValued()
Link copied to clipboard

test we can search for a polygon

Link copied to clipboard
open fun testPolygonHole()

test we can search for a polygon with a hole (but still includes the doc)

Link copied to clipboard

test we can search for a polygon with a hole (that excludes the doc)

Link copied to clipboard

null field name not allowed

Link copied to clipboard
open fun testRandomBig()
Link copied to clipboard

Run a few iterations with just 10 docs, hopefully easy to debug

Link copied to clipboard

Runs with thousands of docs

Link copied to clipboard
open fun testRandomMedium()
Link copied to clipboard
open fun testRandomTiny()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

see https://issues.apache.org/jira/browse/LUCENE-6905

Link copied to clipboard

Explicitly large

Link copied to clipboard
Link copied to clipboard
open fun testSmallSetPoly()
Link copied to clipboard
Link copied to clipboard
open fun testSmallSetRect()
Link copied to clipboard
Link copied to clipboard