aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json
blob: 58ed8f642812b64ad05e43b64f617f33b8ed15de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "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}
    }
  ]
}