Class GeoPolygonQueryBuilder

java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<GeoPolygonQueryBuilder>
org.elasticsearch.index.query.GeoPolygonQueryBuilder
All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, QueryBuilder, Rewriteable<QueryBuilder>

@Deprecated
public class GeoPolygonQueryBuilder
extends AbstractQueryBuilder<GeoPolygonQueryBuilder>
Deprecated.
  • Field Details

    • NAME

      public static final java.lang.String NAME
      Deprecated.
      See Also:
      Constant Field Values
    • GEO_POLYGON_DEPRECATION_MSG

      public static final java.lang.String GEO_POLYGON_DEPRECATION_MSG
      Deprecated.
      See Also:
      Constant Field Values
    • DEFAULT_IGNORE_UNMAPPED

      public static final boolean DEFAULT_IGNORE_UNMAPPED
      Deprecated.
      The default value for ignore_unmapped.
      See Also:
      Constant Field Values
  • Constructor Details

    • GeoPolygonQueryBuilder

      @Deprecated public GeoPolygonQueryBuilder​(java.lang.String fieldName, java.util.List<GeoPoint> points)
      Deprecated.
    • GeoPolygonQueryBuilder

      public GeoPolygonQueryBuilder​(StreamInput in) throws java.io.IOException
      Deprecated.
      Read from a stream.
      Throws:
      java.io.IOException
  • Method Details

    • doWriteTo

      protected void doWriteTo​(StreamOutput out) throws java.io.IOException
      Deprecated.
      Specified by:
      doWriteTo in class AbstractQueryBuilder<GeoPolygonQueryBuilder>
      Throws:
      java.io.IOException
    • fieldName

      public java.lang.String fieldName()
      Deprecated.
    • points

      public java.util.List<GeoPoint> points()
      Deprecated.
    • setValidationMethod

      public GeoPolygonQueryBuilder setValidationMethod​(GeoValidationMethod method)
      Deprecated.
      Sets the validation method to use for geo coordinates.
    • getValidationMethod

      public GeoValidationMethod getValidationMethod()
      Deprecated.
      Returns the validation method to use for geo coordinates.
    • ignoreUnmapped

      public GeoPolygonQueryBuilder ignoreUnmapped​(boolean ignoreUnmapped)
      Deprecated.
      Sets whether the query builder should ignore unmapped fields (and run a MatchNoDocsQuery in place of this query) or throw an exception if the field is unmapped.
    • ignoreUnmapped

      public boolean ignoreUnmapped()
      Deprecated.
      Gets whether the query builder will ignore unmapped fields (and run a MatchNoDocsQuery in place of this query) or throw an exception if the field is unmapped.
    • doToQuery

      protected org.apache.lucene.search.Query doToQuery​(SearchExecutionContext context) throws java.io.IOException
      Deprecated.
      Specified by:
      doToQuery in class AbstractQueryBuilder<GeoPolygonQueryBuilder>
      Throws:
      java.io.IOException
    • doXContent

      protected void doXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Deprecated.
      Specified by:
      doXContent in class AbstractQueryBuilder<GeoPolygonQueryBuilder>
      Throws:
      java.io.IOException
    • fromXContent

      public static GeoPolygonQueryBuilder fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Deprecated.
      Throws:
      java.io.IOException
    • doEquals

      protected boolean doEquals​(GeoPolygonQueryBuilder other)
      Deprecated.
      Description copied from class: AbstractQueryBuilder
      Indicates whether some other QueryBuilder object of the same type is "equal to" this one.
      Specified by:
      doEquals in class AbstractQueryBuilder<GeoPolygonQueryBuilder>
    • doHashCode

      protected int doHashCode()
      Deprecated.
      Specified by:
      doHashCode in class AbstractQueryBuilder<GeoPolygonQueryBuilder>
    • getWriteableName

      public java.lang.String getWriteableName()
      Deprecated.
      Description copied from interface: NamedWriteable
      Returns the name of the writeable object