Add elasticsearch with searchguard Dockerfile
[aai/search-data-service.git] / search-data-service / src / test / resources / json / es-payload-translation.json
diff --git a/search-data-service/src/test/resources/json/es-payload-translation.json b/search-data-service/src/test/resources/json/es-payload-translation.json
new file mode 100644 (file)
index 0000000..58ed8f6
--- /dev/null
@@ -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