Annotation Interface Field


Author:
Rizwan Idrees, Mohsin Husen, Artur Konczak, Jonathan Yan, Jakub Vavrik, Kevin Leturc, Peter-Josef Meisch, Xiao Yu, Aleksei Arsenev, Brian Kimmig, Morgan Lutz, Sascha Woo
  • Element Details

    • value

      @AliasFor("name") String value
      Alias for name().
      Since:
      3.2
      Default:
      ""
    • name

      @AliasFor("value") String name
      The name to be used to store the field inside the document. If not set, the name of the annotated property is used.
      Since:
      3.2
      Default:
      ""
    • type

      FieldType type
      Default:
      Auto
    • index

      boolean index
      Default:
      true
    • format

      DateFormat[] format
      Default:
      {date_optional_time, epoch_millis}
    • pattern

      String[] pattern
      Default:
      {}
    • store

      boolean store
      Default:
      false
    • fielddata

      boolean fielddata
      Default:
      false
    • searchAnalyzer

      String searchAnalyzer
      Default:
      ""
    • analyzer

      String analyzer
      Default:
      ""
    • normalizer

      String normalizer
      Default:
      ""
    • ignoreFields

      String[] ignoreFields
      Default:
      {}
    • includeInParent

      boolean includeInParent
      Default:
      false
    • copyTo

      String[] copyTo
      Default:
      {}
    • ignoreAbove

      int ignoreAbove
      Since:
      4.0
      Default:
      -1
    • coerce

      boolean coerce
      Since:
      4.0
      Default:
      true
    • docValues

      boolean docValues
      Since:
      4.0
      Default:
      true
    • ignoreMalformed

      boolean ignoreMalformed
      Since:
      4.0
      Default:
      false
    • indexOptions

      IndexOptions indexOptions
      Since:
      4.0
      Default:
      none
    • indexPhrases

      boolean indexPhrases
      Since:
      4.0
      Default:
      false
    • indexPrefixes

      IndexPrefixes[] indexPrefixes
      implemented as array to enable the empty default value
      Since:
      4.0
      Default:
      {}
    • norms

      boolean norms
      Since:
      4.0
      Default:
      true
    • nullValue

      String nullValue
      Since:
      4.0
      Default:
      ""
    • positionIncrementGap

      int positionIncrementGap
      Since:
      4.0
      Default:
      -1
    • similarity

      String similarity
      Since:
      4.0
      Default:
      "default"
    • termVector

      TermVector termVector
      Since:
      4.0
      Default:
      none
    • scalingFactor

      double scalingFactor
      Since:
      4.0
      Default:
      1.0
    • maxShingleSize

      int maxShingleSize
      Since:
      4.0
      Default:
      -1
    • storeNullValue

      boolean storeNullValue
      if true, the field will be stored in Elasticsearch even if it has a null value
      Since:
      4.1
      Default:
      false
    • positiveScoreImpact

      boolean positiveScoreImpact
      to be used in combination with FieldType.Rank_Feature
      Since:
      4.1
      Default:
      true
    • enabled

      boolean enabled
      to be used in combination with FieldType.Object
      Since:
      4.1
      Default:
      true
    • eagerGlobalOrdinals

      boolean eagerGlobalOrdinals
      Since:
      4.1
      Default:
      false
    • nullValueType

      NullValueType nullValueType
      Since:
      4.1
      Default:
      String
    • dims

      int dims
      to be used in combination with FieldType.Dense_Vector
      Since:
      4.2
      Default:
      -1
    • dynamic

      Dynamic dynamic
      Controls how Elasticsearch dynamically adds fields to the inner object within the document.
      To be used in combination with FieldType.Object or FieldType.Nested
      Since:
      4.3
      Default:
      INHERIT
    • excludeFromSource

      boolean excludeFromSource
      marks this field to be excluded from the _source in Elasticsearch (https://www.elastic.co/guide/en/elasticsearch/reference/7.15/mapping-source-field.html#include-exclude)
      Since:
      4.3
      Default:
      false
    • storeEmptyValue

      boolean storeEmptyValue
      when this field is a {String}, a {Collection} or a {Map} that is empty this property controlls whether the empty value is sent to Elasticsearch.
      Since:
      5.1
      Default:
      true