Annotation Interface Mapping


@Inherited @Retention(RUNTIME) @Target({TYPE,FIELD}) public @interface Mapping
Elasticsearch Mapping
Author:
Mohsin Husen, Peter-Josef Meisch
  • Element Details

    • mappingPath

      String mappingPath
      Default:
      ""
    • enabled

      boolean enabled
      whether mappings are enabled
      Since:
      4.2
      Default:
      true
    • dateDetection

      Mapping.Detection dateDetection
      whether date_detection is enabled
      Since:
      4.3
      Default:
      DEFAULT
    • numericDetection

      Mapping.Detection numericDetection
      whether numeric_detection is enabled
      Since:
      4.3
      Default:
      DEFAULT
    • dynamicDateFormats

      String[] dynamicDateFormats
      custom dynamic date formats
      Since:
      4.3
      Default:
      {}
    • runtimeFieldsPath

      String runtimeFieldsPath
      classpath to a JSON file containing the values for a runtime mapping definition. The file must contain the JSON object that is written as the value of the runtime property.
      Since:
      4.3
      Default:
      ""