Class AbstractGeometryFieldMapper.AbstractGeometryFieldType

java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
Direct Known Subclasses:
AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType, GeoPointFieldMapper.GeoPointFieldType
Enclosing class:
AbstractGeometryFieldMapper<Parsed,​Processed>

public abstract static class AbstractGeometryFieldMapper.AbstractGeometryFieldType
extends MappedFieldType
  • Field Details

  • Constructor Details

    • AbstractGeometryFieldType

      protected AbstractGeometryFieldType​(java.lang.String name, boolean indexed, boolean stored, boolean hasDocValues, boolean parsesArrayValue, AbstractGeometryFieldMapper.Parser<?> geometryParser, java.util.Map<java.lang.String,​java.lang.String> meta)
  • Method Details

    • termQuery

      public final org.apache.lucene.search.Query termQuery​(java.lang.Object value, SearchExecutionContext context)
      Description copied from class: MappedFieldType
      Generates a query that will only match documents that contain the given value. The default implementation returns a TermQuery over the value bytes, boosted by MappedFieldType.boost().
      Specified by:
      termQuery in class MappedFieldType
    • valueFetcher

      public final ValueFetcher valueFetcher​(SearchExecutionContext context, java.lang.String format)
      Description copied from class: MappedFieldType
      Create a helper class to fetch field values during the FetchFieldsPhase.

      New field types must implement this method in order to support the search 'fields' option. Except for metadata fields, field types should not throw UnsupportedOperationException since this could cause a search retrieving multiple fields (like "fields": ["*"]) to fail.

      Specified by:
      valueFetcher in class MappedFieldType