diff options
author | James MacNider <James.MacNider@amdocs.com> | 2019-03-26 17:17:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-26 17:17:42 +0000 |
commit | ebedc4dd1299ad90b8f35d1f55900374e3a5cd30 (patch) | |
tree | 872dc39e8a5d8e1e2495ef1f5d8e030ee7c5f772 /kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json | |
parent | 625ba79d8f18175704e53e57f198ee0055900316 (diff) | |
parent | f837d40539617776cebf7ff7a9c125fd8cef101a (diff) |
Merge "Fix eleastisearch field limit"
Diffstat (limited to 'kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json')
-rw-r--r-- | kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json b/kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json index de8bacf4cb..58ed8f6428 100644 --- a/kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json +++ b/kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json @@ -1,19 +1,16 @@ { - "attr-translations": [{ - "from": "\"type\":\"string\",\"index\":\"analyzed\"", - "to": "\"type\":\"text\",\"index\":\"true\"" - }, + "attr-translations": [ { - "from": "\"type\":\"string\",\"index\":\"not_analyzed\"", - "to": "\"type\":\"keyword\",\"index\":\"true\"" + "query": "$..[?(@.type=='string' && @.index=='analyzed')]", + "update": {"type": "text", "index": true, "fielddata": true} }, { - "from": "\"type\":\"string\"", - "to": "\"type\":\"text\"" + "query": "$..[?(@.type=='string' && @.index=='not_analyzed')]", + "update": {"type": "keyword", "index": true} }, { - "from": "searchable", - "to": "index" + "query": "$..[?(@.type=='string' && !@.index)]", + "update": {"type": "text", "fielddata": true} } ] }
\ No newline at end of file |