Class BaseShapeQueryTestCase<T extends AbstractGeometryQueryBuilder<T>>

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
Direct Known Subclasses:
GeoShapeQueryTestCase

public abstract class BaseShapeQueryTestCase<T extends AbstractGeometryQueryBuilder<T>> extends BasePointShapeQueryTestCase<T>
Collection of tests that can be applied to both geographic and cartesian coordinate data. For geographic data see child classes like GeoShapeQueryTests and GeoShapeWithDocValuesQueryTests. For cartesian data see child class CartesianShapeWithDocValuesQueryTests.
  • Constructor Details

    • BaseShapeQueryTestCase

      public BaseShapeQueryTestCase()
  • Method Details

    • createMapping

      protected void createMapping(String indexName, String fieldName, Settings settings) throws Exception
      Specified by:
      createMapping in class BasePointShapeQueryTestCase<T extends AbstractGeometryQueryBuilder<T>>
      Throws:
      Exception
    • testFieldAlias

      public void testFieldAlias() throws IOException
      Throws:
      IOException
    • testShapeFetchingPath

      public void testShapeFetchingPath() throws Exception
      Throws:
      Exception
    • testRandomGeoCollectionQuery

      public void testRandomGeoCollectionQuery() throws Exception
      Throws:
      Exception
    • testGeometryCollectionRelations

      public void testGeometryCollectionRelations() throws Exception
      Throws:
      Exception
    • testEdgeCases

      public void testEdgeCases() throws Exception
      Throws:
      Exception
    • testIndexedShapeReferenceSourceDisabled

      public void testIndexedShapeReferenceSourceDisabled() throws Exception
      Throws:
      Exception
    • testPointQuery

      public void testPointQuery() throws Exception
      tests querying a random geometry collection with a point
      Throws:
      Exception
    • testContainsShapeQuery

      public void testContainsShapeQuery() throws Exception
      Throws:
      Exception
    • testExistsQuery

      public void testExistsQuery() throws Exception
      Throws:
      Exception
    • testIndexedShapeReference

      public void testIndexedShapeReference() throws Exception
      Throws:
      Exception
    • testQueryRandomGeoCollection

      public void testQueryRandomGeoCollection() throws Exception
      Throws:
      Exception
    • testShapeFilterWithDefinedGeoCollection

      public void testShapeFilterWithDefinedGeoCollection() throws Exception
      Throws:
      Exception
    • testDistanceQuery

      public void testDistanceQuery() throws Exception
      Throws:
      Exception
    • testIndexLineQueryPoints

      public void testIndexLineQueryPoints() throws Exception
      Throws:
      Exception
    • testIndexPolygonQueryPoints

      public void testIndexPolygonQueryPoints() throws Exception
      Throws:
      Exception
    • testNeighbours

      public void testNeighbours() throws Exception
      Throws:
      Exception
    • makeRandomLine

      protected abstract org.elasticsearch.geometry.Line makeRandomLine()
    • makeRandomPolygon

      protected abstract org.elasticsearch.geometry.Polygon makeRandomPolygon()
    • makeRandomGeometryCollection

      protected abstract org.elasticsearch.geometry.GeometryCollection<org.elasticsearch.geometry.Geometry> makeRandomGeometryCollection()
    • makeRandomGeometryCollectionWithoutCircle

      protected abstract org.elasticsearch.geometry.GeometryCollection<org.elasticsearch.geometry.Geometry> makeRandomGeometryCollectionWithoutCircle(org.elasticsearch.geometry.Geometry... extra)
    • nextPoint

      protected abstract org.elasticsearch.geometry.Point nextPoint()
    • nextPolygon

      protected abstract org.elasticsearch.geometry.Polygon nextPolygon()
    • nextPolygon2

      protected abstract org.elasticsearch.geometry.Polygon nextPolygon2()