summaryrefslogtreecommitdiffstats
path: root/kubernetes/pomba/charts/pomba-search-data/resources/config
diff options
context:
space:
mode:
authorNorm Traxler <normant@amdocs.com>2019-03-25 15:00:24 +0100
committerNorm Traxler <normant@amdocs.com>2019-03-25 15:00:38 +0100
commitf837d40539617776cebf7ff7a9c125fd8cef101a (patch)
tree1850e9f9e4c25f58c8a21582e3a650453a504245 /kubernetes/pomba/charts/pomba-search-data/resources/config
parentf6af090ab2a66108d7323472ed85923d1ea0e709 (diff)
Fix eleastisearch field limit
Issue-ID: LOG-1030 Change-Id: I5cad4758907ad1df55761c883693ba0571ab7de0 Signed-off-by: Norm Traxler <normant@amdocs.com>
Diffstat (limited to 'kubernetes/pomba/charts/pomba-search-data/resources/config')
-rw-r--r--kubernetes/pomba/charts/pomba-search-data/resources/config/es-payload-translation.json17
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