Edwin Lawrance | 52b0c7e | 2018-07-16 19:55:15 +0100 | [diff] [blame] | 1 | { |
| 2 | "attr-translations": [ |
| 3 | { |
Lawrance, Edwin (el525a) | 3e4a896 | 2018-09-14 15:56:22 +0100 | [diff] [blame] | 4 | "query": "$..[?(@.type=='string' && @.index=='analyzed')]", |
| 5 | "update": {"type": "text", "index": true, "fielddata": true} |
Edwin Lawrance | 52b0c7e | 2018-07-16 19:55:15 +0100 | [diff] [blame] | 6 | }, |
| 7 | { |
Lawrance, Edwin (el525a) | 3e4a896 | 2018-09-14 15:56:22 +0100 | [diff] [blame] | 8 | "query": "$..[?(@.type=='string' && @.index=='not_analyzed')]", |
| 9 | "update": {"type": "keyword", "index": true} |
Edwin Lawrance | 52b0c7e | 2018-07-16 19:55:15 +0100 | [diff] [blame] | 10 | }, |
| 11 | { |
Lawrance, Edwin (el525a) | 3e4a896 | 2018-09-14 15:56:22 +0100 | [diff] [blame] | 12 | "query": "$..[?(@.type=='string' && !@.index)]", |
| 13 | "update": {"type": "text", "fielddata": true} |
Edwin Lawrance | 52b0c7e | 2018-07-16 19:55:15 +0100 | [diff] [blame] | 14 | } |
| 15 | ] |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 16 | } |
| 17 | |