Geora Barsky | 417b3b4 | 2018-08-17 13:31:36 -0400 | [diff] [blame] | 1 | { |
Norm Traxler | f837d40 | 2019-03-25 15:00:24 +0100 | [diff] [blame] | 2 | "attr-translations": [ |
| 3 | { |
| 4 | "query": "$..[?(@.type=='string' && @.index=='analyzed')]", |
| 5 | "update": {"type": "text", "index": true, "fielddata": true} |
Geora Barsky | 417b3b4 | 2018-08-17 13:31:36 -0400 | [diff] [blame] | 6 | }, |
| 7 | { |
Norm Traxler | f837d40 | 2019-03-25 15:00:24 +0100 | [diff] [blame] | 8 | "query": "$..[?(@.type=='string' && @.index=='not_analyzed')]", |
| 9 | "update": {"type": "keyword", "index": true} |
Geora Barsky | 417b3b4 | 2018-08-17 13:31:36 -0400 | [diff] [blame] | 10 | }, |
| 11 | { |
Norm Traxler | f837d40 | 2019-03-25 15:00:24 +0100 | [diff] [blame] | 12 | "query": "$..[?(@.type=='string' && !@.index)]", |
| 13 | "update": {"type": "text", "fielddata": true} |
Geora Barsky | 417b3b4 | 2018-08-17 13:31:36 -0400 | [diff] [blame] | 14 | } |
| 15 | ] |
| 16 | } |