aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json
blob: 8a29863bf38eb034864ad96c812aed769c70bf6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "attr-translations": [
    {
      "query": "$..[?(@.type=='string' && @.index=='analyzed')]",
      "update": {"type": "text", "index": true, "fielddata": true}
    },
    {
      "query": "$..[?(@.type=='string' && @.index=='not_analyzed')]",
      "update": {"type": "keyword", "index": true}
    },
    {
      "query": "$..[?(@.type=='string' && !@.index)]",
      "update": {"type": "text", "fielddata": true}
    }
  ]
}