|
@@ -147,12 +147,15 @@ def generate_index(client, version):
|
|
|
'type': 'string',
|
|
|
'index_analyzer': 'standard'
|
|
|
},
|
|
|
- 'completion_with_index_analyzer': {
|
|
|
- 'type': 'completion',
|
|
|
- 'index_analyzer': 'standard'
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
+ # completion type was added in 0.90.3
|
|
|
+ if not version in ['0.90.0.Beta1', '0.90.0.RC1', '0.90.0.RC2', '0.90.0', '0.90.1', '0.90.2']:
|
|
|
+ mappings['analyzer_1']['properties']['completion_with_index_analyzer'] = {
|
|
|
+ 'type': 'completion',
|
|
|
+ 'index_analyzer': 'standard'
|
|
|
+ }
|
|
|
+
|
|
|
mappings['analyzer_type2'] = {
|
|
|
'index_analyzer': 'standard',
|
|
|
'search_analyzer': 'keyword',
|