Code Review
/
aai
/
search-data-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix to not remove whitespaces in the payload to ES
[aai/search-data-service.git]
/
src
/
test
/
resources
/
json
/
es-payload-translation.json
diff --git
a/src/test/resources/json/es-payload-translation.json
b/src/test/resources/json/es-payload-translation.json
index
e5290b0
..
58ed8f6
100644
(file)
--- a/
src/test/resources/json/es-payload-translation.json
+++ b/
src/test/resources/json/es-payload-translation.json
@@
-1,24
+1,16
@@
{
{
- "attr-translations": [
- {
- "from": "\"data-type\":\"string\"",
- "to": "\"data-type\":\"text\",\"fielddata\":true"
- },
+ "attr-translations": [
{
{
- "
from": "\"type\":\"string\",\"index\":\"analyzed\"
",
- "
to": "\"type\":\"text\",\"index\":\"true\",\"fielddata\":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\",\"fielddata\":true"
- },
- {
- "from": "searchable",
- "to": "index"
+ "query": "$..[?(@.type=='string' && !@.index)]",
+ "update": {"type": "text", "fielddata": true}
}
]
}
\ No newline at end of file
}
]
}
\ No newline at end of file