Browse Source

regenerate 0.90.x indexes without completion suggester

Robert Muir 10 years ago
parent
commit
3a0700862a

+ 7 - 4
dev-tools/create-bwc-index.py

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

BIN
src/test/resources/org/elasticsearch/bwcompat/index-0.90.0.Beta1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/index-0.90.0.RC1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/index-0.90.0.RC2.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/index-0.90.0.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/index-0.90.1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/index-0.90.2.zip