Class BaseShapeIntegTestCase<T extends AbstractGeometryQueryBuilder<T>>

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.test.ESIntegTestCase
org.elasticsearch.search.geo.BaseShapeIntegTestCase<T>
Direct Known Subclasses:
GeoShapeIntegTestCase

public abstract class BaseShapeIntegTestCase<T extends AbstractGeometryQueryBuilder<T>> extends ESIntegTestCase
  • Constructor Details

    • BaseShapeIntegTestCase

      public BaseShapeIntegTestCase()
  • Method Details

    • queryBuilder

      protected abstract SpatialQueryBuilders<T> queryBuilder()
    • getFieldTypeName

      protected abstract String getFieldTypeName()
    • getGeoShapeMapping

      protected abstract void getGeoShapeMapping(org.elasticsearch.xcontent.XContentBuilder b) throws IOException
      Provides the content of the mapping. Typically, it adds the type and any other attribute if necessary.
      Throws:
      IOException
    • randomSupportedVersion

      protected abstract IndexVersion randomSupportedVersion()
      Provides a supported version when the mapping was created.
    • allowExpensiveQueries

      protected abstract boolean allowExpensiveQueries()
      If this field is allowed to be executed when setting allow_expensive_queries us set to false.
    • forbidPrivateIndexSettings

      protected boolean forbidPrivateIndexSettings()
      Overrides:
      forbidPrivateIndexSettings in class ESIntegTestCase
    • testOrientationPersistence

      public void testOrientationPersistence() throws Exception
      Test that orientation parameter correctly persists across cluster restart
      Throws:
      Exception
    • testIgnoreMalformed

      public void testIgnoreMalformed() throws Exception
      Test that ignore_malformed on GeoShapeFieldMapper does not fail the entire document
      Throws:
      Exception
    • testIndexShapeRouting

      public void testIndexShapeRouting() throws Exception
      Test that the indexed shape routing can be provided if it is required
      Throws:
      Exception
    • testDisallowExpensiveQueries

      public void testDisallowExpensiveQueries() throws InterruptedException, IOException
      Throws:
      InterruptedException
      IOException
    • testShapeRelations

      public void testShapeRelations() throws Exception
      Throws:
      Exception
    • testBulk

      public void testBulk() throws Exception
      Throws:
      Exception
    • doDistanceAndBoundingBoxTest

      protected abstract void doDistanceAndBoundingBoxTest(String key)
    • convertTestData

      protected byte[] convertTestData(ByteArrayOutputStream out)
      Override this method if there is need to modify the test data for specific tests