summaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/components/aai-search-data/resources/config/es-payload-translation.json
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/aai/components/aai-search-data/resources/config/es-payload-translation.json')
-rw-r--r--kubernetes/aai/components/aai-search-data/resources/config/es-payload-translation.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/kubernetes/aai/components/aai-search-data/resources/config/es-payload-translation.json b/kubernetes/aai/components/aai-search-data/resources/config/es-payload-translation.json
new file mode 100644
index 0000000000..8a29863bf3
--- /dev/null
+++ b/kubernetes/aai/components/aai-search-data/resources/config/es-payload-translation.json
@@ -0,0 +1,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}
+ }
+ ]
+}
+