Probleme template behavior

Hello !

I have a problem with my dynamic template. I wanted to put "not analyze" for all string fields. (see below the screeshot)

"dynamic_templates": [
          {
            "string_fields": {
              "mapping": {
                "norms": false,
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "index": "not_analyzed"
                  },
                  "string": {
                    "type": "string",
                    "index": "not_analyzed"
                  },
                  "text": {
                    "type": "text",
                    "index": "not_analyzed"
                  }
                }
              },
              "match_mapping_type": "string",
              "match": "*"
            }
          }
        ]

Here the result.... I have 4 fields now ! (example for ctename) :

I don't understand. (In addition they are analyzed ! )

What version are you on?
What does the applied mapping look like?

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