diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/10_dense_vector_basic.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/10_dense_vector_basic.yml index 9d68a7fbbc2..668280d8a78 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/10_dense_vector_basic.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/10_dense_vector_basic.yml @@ -10,6 +10,7 @@ setup: index: test-index body: settings: + number_of_shards: 1 number_of_replicas: 0 mappings: properties: diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/15_dense_vector_l1l2.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/15_dense_vector_l1l2.yml index 61726c4cbf7..2bf95d38793 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/15_dense_vector_l1l2.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/15_dense_vector_l1l2.yml @@ -10,6 +10,7 @@ setup: index: test-index body: settings: + number_of_shards: 1 number_of_replicas: 0 mappings: properties: diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml index f323043ef71..f856c369bb4 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml @@ -10,9 +10,8 @@ setup: index: test-index body: settings: - number_of_replicas: 0 - # we need to have 1 shard to get request failure in test "Dense vectors should error with sparse vector functions" number_of_shards: 1 + number_of_replicas: 0 mappings: properties: my_dense_vector: diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/30_sparse_vector_basic.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/30_sparse_vector_basic.yml index a2f52266e9c..05ff14cb089 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/30_sparse_vector_basic.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/30_sparse_vector_basic.yml @@ -12,6 +12,7 @@ setup: index: test-index body: settings: + number_of_shards: 1 number_of_replicas: 0 mappings: properties: diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/35_sparse_vector_l1l2.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/35_sparse_vector_l1l2.yml index 11248548d57..f06ef63e935 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/35_sparse_vector_l1l2.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/35_sparse_vector_l1l2.yml @@ -12,6 +12,7 @@ setup: index: test-index body: settings: + number_of_shards: 1 number_of_replicas: 0 mappings: properties: diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/40_sparse_vector_special_cases.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/40_sparse_vector_special_cases.yml index 05596b76a18..3672f45e9f7 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/40_sparse_vector_special_cases.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/40_sparse_vector_special_cases.yml @@ -12,9 +12,8 @@ setup: index: test-index body: settings: - number_of_replicas: 0 - # we need to have 1 shard to get request failure in test "Sparse vectors should error with dense vector functions" number_of_shards: 1 + number_of_replicas: 0 mappings: properties: my_sparse_vector: diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/50_vector_stats.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/50_vector_stats.yml index b81ee9c5c19..96190125efd 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/50_vector_stats.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/50_vector_stats.yml @@ -17,6 +17,9 @@ setup: indices.create: index: test-index1 body: + settings: + number_of_shards: 1 + number_of_replicas: 0 mappings: properties: my_dense_vector1: