Browse Source

Merge pull request #10143 from rmuir/bwcompat1

use bigger back compat indexes
Robert Muir 10 years ago
parent
commit
5f1ed47df6
77 changed files with 8 additions and 7 deletions
  1. 8 7
      dev-tools/create-bwc-index.py
  2. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.0.Beta1.zip
  3. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.0.RC1.zip
  4. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.0.RC2.zip
  5. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.0.zip
  6. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.1.zip
  7. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.10.zip
  8. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.11.zip
  9. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.12.zip
  10. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.13.zip
  11. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.2.zip
  12. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.3.zip
  13. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.4.zip
  14. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.5.zip
  15. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.6.zip
  16. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.7.zip
  17. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.8.zip
  18. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-0.90.9.zip
  19. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.0.0.Beta1.zip
  20. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.0.0.Beta2.zip
  21. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.0.0.RC1.zip
  22. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.0.0.RC2.zip
  23. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.0.0.zip
  24. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.0.1.zip
  25. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.0.2.zip
  26. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.0.3.zip
  27. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.1.0.zip
  28. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.1.1.zip
  29. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.1.2.zip
  30. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.2.1.zip
  31. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.2.2.zip
  32. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.2.3.zip
  33. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.2.4.zip
  34. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.0.zip
  35. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.1.zip
  36. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.2.zip
  37. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.3.zip
  38. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.4.zip
  39. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.5.zip
  40. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.6.zip
  41. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.7.zip
  42. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.8.zip
  43. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.3.9.zip
  44. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.4.0.zip
  45. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.4.1.zip
  46. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.4.2.zip
  47. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.4.3.zip
  48. BIN
      src/test/resources/org/elasticsearch/bwcompat/index-1.4.4.zip
  49. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.0.0.Beta2.zip
  50. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.0.0.RC1.zip
  51. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.0.0.RC2.zip
  52. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.0.0.zip
  53. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.0.1.zip
  54. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.0.2.zip
  55. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.0.3.zip
  56. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.1.0.zip
  57. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.1.1.zip
  58. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.1.2.zip
  59. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.2.1.zip
  60. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.2.2.zip
  61. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.2.3.zip
  62. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.2.4.zip
  63. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.0.zip
  64. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.1.zip
  65. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.2.zip
  66. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.3.zip
  67. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.4.zip
  68. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.5.zip
  69. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.6.zip
  70. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.7.zip
  71. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.8.zip
  72. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.3.9.zip
  73. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.4.0.zip
  74. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.4.1.zip
  75. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.4.2.zip
  76. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.4.3.zip
  77. BIN
      src/test/resources/org/elasticsearch/bwcompat/repo-1.4.4.zip

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

@@ -66,8 +66,6 @@ def index_documents(es, index_name, type, num_docs):
       es.indices.refresh(index=index_name)
     if rarely():
       es.indices.flush(index=index_name, force=frequently())
-  if rarely():
-      es.indices.optimize(index=index_name)
   logging.info('Flushing index')
   es.indices.flush(index=index_name)
 
@@ -149,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',
@@ -209,7 +210,7 @@ def generate_index(client, version):
   health = client.cluster.health(wait_for_status='green', wait_for_relocating_shards=0)
   assert health['timed_out'] == False, 'cluster health timed out %s' % health
 
-  num_docs = random.randint(10, 100)
+  num_docs = random.randint(2000, 3000)
   index_documents(client, 'test', 'doc', num_docs)
   logging.info('Running basic asserts on the data added')
   run_basic_asserts(client, 'test', 'doc', num_docs)

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.10.zip


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.0.0.Beta2.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.0.0.RC1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.0.0.RC2.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.0.0.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.0.1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.0.2.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.0.3.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.1.0.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.1.1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.1.2.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.2.1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.2.2.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.2.3.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.2.4.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.0.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.2.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.3.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.4.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.5.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.6.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.7.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.8.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.3.9.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.4.0.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.4.1.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.4.2.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.4.3.zip


BIN
src/test/resources/org/elasticsearch/bwcompat/repo-1.4.4.zip