regenerate 0.90.x indexes without completion suggester

This commit is contained in:
Robert Muir 2015-03-18 14:29:41 -04:00
parent 087b107dd2
commit 3a0700862a
7 changed files with 7 additions and 4 deletions

View File

@ -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',