Search code examples
javaspringelasticsearchspring-data-elasticsearch

Spring Elasticsearch How to Apply the Following Mapping Parameters?


We need to incorporate the following mapping parameters in our java class fields:

'doc_values' 'norms' 'index' 'dynamic'

can somebody know what annotation/how to incorporate it on our field class?


Solution

  • You can refer this documentation where they have gievn all the param details which is supported for @field annotation.

    @Field(type = FieldType.Text, docValues = true)
    private String authors;