Default dynamic template uses enum for text fields instead of keyword

We're using Elasticsearch dynamic mapping for our indexes, but for some reason our indexes are mapping text fields to enum sub fields instead of keyword sub fields like it says in the docs (Dynamic field mapping | Elasticsearch Guide [8.11] | Elastic).

When we use an emulator, we can correctly do term queries on text fields by appending ".keyword" to the field path, but in our production environments we have to append ".enum" instead.

Any idea why our default dynamic template seems to be incorrectly doing the index mapping? Where are default dynamic templates stored?

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