What are the fields in the text field of this index mapping?

    "mappings": { "my_doc": { "properties": {
          "content": {
              "type": "text",
                  "fields": {
                      "ngram": {
                          "type": "text",
                           "analyzer": "ngram_icu_analyzer"
                       },
                      "norm": {
                           "type": "text",
                           "analyzer": "icu_analyzer"
                       },
                      "phonetic": {
                            "type": "text",
                            "analyzer": "phonetic_analyzer"
                      },
                      "stem": {
                          "type": "text",
                           "analyzer": "stem_analyzer"
                      }
              },
             "analyzer": "preserve_analyzer"
            }
     }}}

I have an index my_doc whereas there is a content field specified in the mapping. The content field has multiple "fields" specified under it. Are these all different fields that are processed using the analyzer specified in each K:V pair under the content fields? What exactly am I looking at?

To answer my own question, these are multi-fields

1 Like

Thanks for sharing your solution :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.