org.hibernate.search.elasticsearch.schema.impl.model

## Class PropertyMapping

- java.lang.Object
- - org.hibernate.search.elasticsearch.schema.impl.model.TypeMapping
  - - org.hibernate.search.elasticsearch.schema.impl.model.PropertyMapping

-     public class PropertyMapping
      extends TypeMapping

  An object representing Elasticsearch property mappings, i.e. the mappings of properties inside a type mapping. See https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-type
  Author:
    Yoann Rodiere

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PropertyMapping()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addField(String name, PropertyMapping mapping)`
    `String` | `getAnalyzer()`
    `Float` | `getBoost()`
    `Boolean` | `getDocValues()`
    `FieldDataType` | `getFieldData()`
    `Map<String,PropertyMapping>` | `getFields()`
    `List<String>` | `getFormat()`
    `IndexType` | `getIndex()`
    `String` | `getNormalizer()`
    `NormsType` | `getNorms()`
    `com.google.gson.JsonPrimitive` | `getNullValue()`
    `Boolean` | `getStore()`
    `DataType` | `getType()`
    `void` | `removeField(String name)`
    `void` | `setAnalyzer(String analyzer)`
    `void` | `setBoost(Float boost)`
    `void` | `setDocValues(Boolean docValues)`
    `void` | `setFieldData(FieldDataType fieldData)`
    `void` | `setFormat(List<String> format)`
    `void` | `setIndex(IndexType index)`
    `void` | `setNormalizer(String normalizer)`
    `void` | `setNorms(NormsType norms)`
    `void` | `setNullValue(com.google.gson.JsonPrimitive nullValue)`
    `void` | `setStore(Boolean store)`
    `void` | `setType(DataType type)`
    `String` | `toString()`

    - ### Methods inherited from class org.hibernate.search.elasticsearch.schema.impl.model.TypeMapping

      `addProperty, getDynamic, getProperties, removeProperty, setDynamic`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### PropertyMapping

          public PropertyMapping()

  - ### Method Detail

    - #### getType

          public DataType getType()

    - #### setType

          public void setType(DataType type)

    - #### getFormat

          public List<String> getFormat()

    - #### setFormat

          public void setFormat(List<String> format)

    - #### getBoost

          public Float getBoost()

    - #### setBoost

          public void setBoost(Float boost)

    - #### getIndex

          public IndexType getIndex()

    - #### setIndex

          public void setIndex(IndexType index)

    - #### getNorms

          public NormsType getNorms()

    - #### setNorms

          public void setNorms(NormsType norms)

    - #### getDocValues

          public Boolean getDocValues()

    - #### setDocValues

          public void setDocValues(Boolean docValues)

    - #### getStore

          public Boolean getStore()

    - #### setStore

          public void setStore(Boolean store)

    - #### getNullValue

          public com.google.gson.JsonPrimitive getNullValue()

    - #### setNullValue

          public void setNullValue(com.google.gson.JsonPrimitive nullValue)

    - #### getFields

          public Map<String,PropertyMapping> getFields()

    - #### addField

          public void addField(String name,
                               PropertyMapping mapping)

    - #### removeField

          public void removeField(String name)

    - #### getAnalyzer

          public String getAnalyzer()

    - #### setAnalyzer

          public void setAnalyzer(String analyzer)

    - #### getNormalizer

          public String getNormalizer()

    - #### setNormalizer

          public void setNormalizer(String normalizer)

    - #### getFieldData

          public FieldDataType getFieldData()

    - #### setFieldData

          public void setFieldData(FieldDataType fieldData)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `TypeMapping`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved