Class AbstractGeometryQueryBuilder<QB extends AbstractGeometryQueryBuilder<QB>>

java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<QB>
org.elasticsearch.index.query.AbstractGeometryQueryBuilder<QB>
All Implemented Interfaces:
NamedWriteable, Writeable, QueryBuilder, Rewriteable<QueryBuilder>, ToXContent, ToXContentObject
Direct Known Subclasses:
GeoShapeQueryBuilder

public abstract class AbstractGeometryQueryBuilder<QB extends AbstractGeometryQueryBuilder<QB>> extends AbstractQueryBuilder<QB>
Base QueryBuilder that builds a Geometry Query
  • Field Details

    • DEFAULT_SHAPE_INDEX_NAME

      public static final String DEFAULT_SHAPE_INDEX_NAME
      See Also:
    • DEFAULT_SHAPE_FIELD_NAME

      public static final String DEFAULT_SHAPE_FIELD_NAME
      See Also:
    • DEFAULT_SHAPE_RELATION

      public static final ShapeRelation DEFAULT_SHAPE_RELATION
    • DEFAULT_IGNORE_UNMAPPED

      public static final boolean DEFAULT_IGNORE_UNMAPPED
      The default value for ignore_unmapped.
      See Also:
    • SHAPE_FIELD

      protected static final ParseField SHAPE_FIELD
    • RELATION_FIELD

      protected static final ParseField RELATION_FIELD
    • INDEXED_SHAPE_FIELD

      protected static final ParseField INDEXED_SHAPE_FIELD
    • SHAPE_ID_FIELD

      protected static final ParseField SHAPE_ID_FIELD
    • SHAPE_TYPE_FIELD

      protected static final ParseField SHAPE_TYPE_FIELD
    • SHAPE_INDEX_FIELD

      protected static final ParseField SHAPE_INDEX_FIELD
    • SHAPE_PATH_FIELD

      protected static final ParseField SHAPE_PATH_FIELD
    • SHAPE_ROUTING_FIELD

      protected static final ParseField SHAPE_ROUTING_FIELD
    • IGNORE_UNMAPPED_FIELD

      protected static final ParseField IGNORE_UNMAPPED_FIELD
    • fieldName

      protected final String fieldName
    • supplier

      protected final Supplier<Geometry> supplier
    • indexedShapeId

      protected final String indexedShapeId
    • indexedShapeType

      protected final String indexedShapeType
    • shape

      protected Geometry shape
    • indexedShapeIndex

      protected String indexedShapeIndex
    • indexedShapePath

      protected String indexedShapePath
    • indexedShapeRouting

      protected String indexedShapeRouting
    • relation

      protected ShapeRelation relation
    • ignoreUnmapped

      protected boolean ignoreUnmapped
  • Constructor Details

    • AbstractGeometryQueryBuilder

      public AbstractGeometryQueryBuilder(String fieldName, Geometry shape)
      Creates a new AbstractGeometryQueryBuilder whose Query will be against the given field name using the given Shape
      Parameters:
      fieldName - Name of the field that will be queried
      shape - Shape used in the Query
    • AbstractGeometryQueryBuilder

      protected AbstractGeometryQueryBuilder(String fieldName, String indexedShapeId)
      Creates a new ShapeQueryBuilder whose Query will be against the given field name and will use the Shape found with the given ID
      Parameters:
      fieldName - Name of the field that will be filtered
      indexedShapeId - ID of the indexed Shape that will be used in the Query
    • AbstractGeometryQueryBuilder

      @Deprecated protected AbstractGeometryQueryBuilder(String fieldName, String indexedShapeId, String indexedShapeType)
      Creates a new AbstractGeometryQueryBuilder whose Query will be against the given field name and will use the Shape found with the given ID in the given type
      Parameters:
      fieldName - Name of the field that will be filtered
      indexedShapeId - ID of the indexed Shape that will be used in the Query
      indexedShapeType - Index type of the indexed Shapes
    • AbstractGeometryQueryBuilder

      protected AbstractGeometryQueryBuilder(String fieldName, Geometry shape, String indexedShapeId, @Nullable String indexedShapeType)
    • AbstractGeometryQueryBuilder

      protected AbstractGeometryQueryBuilder(String fieldName, Supplier<Geometry> supplier, String indexedShapeId, @Nullable String indexedShapeType)
    • AbstractGeometryQueryBuilder

      protected AbstractGeometryQueryBuilder(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details