summaryrefslogtreecommitdiffstats
path: root/kubernetes/pomba/components/pomba-search-data/resources/config/es-payload-translation.json
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/pomba/components/pomba-search-data/resources/config/es-payload-translation.json')
-rw-r--r--kubernetes/pomba/components/pomba-search-data/resources/config/es-payload-translation.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/kubernetes/pomba/components/pomba-search-data/resources/config/es-payload-translation.json b/kubernetes/pomba/components/pomba-search-data/resources/config/es-payload-translation.json
new file mode 100644
index 0000000000..58ed8f6428
--- /dev/null
+++ b/kubernetes/pomba/components/pomba-search-data/resources/config/es-payload-translation.json
@@ -0,0 +1,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}
+ }
+ ]
+} \ No newline at end of file