Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Update Keystore cert"
[oom.git]
/
kubernetes
/
aai
/
charts
/
aai-search-data
/
resources
/
config
/
es-payload-translation.json
diff --git
a/kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json
b/kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json
index
93888be
..
8a29863
100644
(file)
--- a/
kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json
+++ b/
kubernetes/aai/charts/aai-search-data/resources/config/es-payload-translation.json
@@
-1,20
+1,17
@@
{
"attr-translations": [
{
{
"attr-translations": [
{
- "
from": "\"type\":\"string\",\"index\":\"analyzed\"
",
- "
to": "\"type\":\"text\",\"index\":\"true\""
+ "
query": "$..[?(@.type=='string' && @.index=='analyzed')]
",
+ "
update": {"type": "text", "index": true, "fielddata": true}
},
{
},
{
- "
from": "\"type\":\"string\",\"index\":\"not_analyzed\"
",
- "
to": "\"type\":\"keyword\",\"index\":\"true\""
+ "
query": "$..[?(@.type=='string' && @.index=='not_analyzed')]
",
+ "
update": {"type": "keyword", "index": true}
},
{
},
{
- "from": "\"type\":\"string\"",
- "to": "\"type\":\"text\""
- },
- {
- "from": "searchable",
- "to": "index"
+ "query": "$..[?(@.type=='string' && !@.index)]",
+ "update": {"type": "text", "fielddata": true}
}
]
}
]
-}
\ No newline at end of file
+}
+