Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ setup:
- match: { hits.hits.1.fields.name.0: "rabbit.jpg" }
---
"kNN multi-field search only":
- requires:
cluster_features: "gte_v8.7.0"
reason: 'multi-field kNN search added to search endpoint in 8.7'
- do:
search:
index: test
Expand All @@ -102,9 +99,6 @@ setup:
- match: { hits.hits.1.fields.name.0: "moose.jpg" }
---
"kNN search plus query":
- requires:
cluster_features: "gte_v8.4.0"
reason: 'kNN added to search endpoint in 8.4'
- do:
search:
index: test
Expand All @@ -129,9 +123,6 @@ setup:
- match: { hits.hits.2.fields.name.0: "rabbit.jpg" }
---
"kNN multi-field search with query":
- requires:
cluster_features: "gte_v8.7.0"
reason: 'multi-field kNN search added to search endpoint in 8.7'
- do:
search:
index: test
Expand All @@ -154,9 +145,6 @@ setup:
- match: { hits.hits.2.fields.name.0: "moose.jpg" }
---
"kNN search with filter":
- requires:
cluster_features: "gte_v8.4.0"
reason: 'kNN added to search endpoint in 8.4'
- do:
search:
index: test
Expand Down Expand Up @@ -195,9 +183,6 @@ setup:

---
"kNN search with explicit search_type":
- requires:
cluster_features: "gte_v8.4.0"
reason: 'kNN added to search endpoint in 8.4'
- do:
catch: bad_request
search:
Expand All @@ -216,9 +201,6 @@ setup:

---
"Test nonexistent field is match none":
- requires:
cluster_features: "gte_v8.16.0"
reason: 'non-existent field handling improved in 8.16'
- do:
search:
index: test
Expand Down Expand Up @@ -266,9 +248,6 @@ setup:

---
"KNN Vector similarity search only":
- requires:
cluster_features: "gte_v8.8.0"
reason: 'kNN similarity added in 8.8'
- do:
search:
index: test
Expand All @@ -287,9 +266,6 @@ setup:
- match: { hits.hits.0.fields.name.0: "moose.jpg" }
---
"Vector similarity with filter only":
- requires:
cluster_features: "gte_v8.8.0"
reason: 'kNN similarity added in 8.8'
- do:
search:
index: test
Expand Down Expand Up @@ -325,8 +301,6 @@ setup:
---
"Knn search with mip":
- requires:
cluster_features: "gte_v8.11.0"
reason: 'mip similarity added in 8.11'
test_runner_features: "close_to"

- do:
Expand Down Expand Up @@ -414,8 +388,6 @@ setup:
---
"Knn search with _name":
- requires:
cluster_features: "gte_v8.15.0"
reason: 'support for _name in knn was added in 8.15'
test_runner_features: "close_to"

- do:
Expand Down Expand Up @@ -450,39 +422,7 @@ setup:
- match: { hits.hits.2.matched_queries.0: "my_knn_query" }

---
"kNN search on empty index should return 0 results and not an error":
- requires:
cluster_features: "gte_v8.15.1"
reason: 'Error fixed in 8.15.1'
- do:
indices.create:
index: test_empty
body:
mappings:
properties:
vector:
type: dense_vector
- do:
search:
index: test_empty
body:
fields: [ "name" ]
knn:
field: vector
query_vector: [ -0.5, 90.0, -10, 14.8, -156.0 ]
k: 2
num_candidates: 3

- match: { hits.total.value: 0 }
---
"Vector rescoring has no effect for non-quantized vectors and provides same results as non-rescored knn":
- requires:
reason: 'Quantized vector rescoring is required'
test_runner_features: [capabilities]
capabilities:
- method: GET
path: /_search
capabilities: [knn_quantized_vector_rescore_oversample]
- skip:
features: "headers"

Expand Down Expand Up @@ -571,9 +511,6 @@ setup:

---
"Updating dim to null is not allowed":
- requires:
cluster_features: "mapper.npe_on_dims_update_fix"
reason: "dims update fix"
- do:
indices.create:
index: test_index
Expand All @@ -598,9 +535,6 @@ setup:

---
"Searching with no data dimensions specified":
- requires:
cluster_features: "search.vectors.no_dimensions_bugfix"
reason: "Search with no dimensions bugfix"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ setup:
indices.refresh: { }
---
"Test knn search":
- requires:
capabilities:
- method: POST
path: /_search
capabilities: [ optimized_scalar_quantization_bbq ]
test_runner_features: capabilities
reason: "BBQ scoring improved and changed with optimized_scalar_quantization_bbq"
- do:
search:
index: bbq_hnsw
Expand All @@ -113,13 +106,6 @@ setup:
- match: { hits.hits.2._id: "2" }
---
"Vector rescoring has same scoring as exact search for kNN section":
- requires:
reason: 'Quantized vector rescoring is required'
test_runner_features: [capabilities]
capabilities:
- method: GET
path: /_search
capabilities: [knn_quantized_vector_rescore_oversample]
- skip:
features: "headers"

Expand Down Expand Up @@ -241,9 +227,6 @@ setup:
vector: [1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0]
---
"Test index configured rescore vector":
- requires:
cluster_features: ["mapper.dense_vector.rescore_vector"]
reason: Needs rescore_vector feature
- skip:
features: "headers"
- do:
Expand Down Expand Up @@ -332,10 +315,6 @@ setup:
- match: { hits.hits.2._score: $rescore_score2 }
---
"Test index configured rescore vector updateable and settable to 0":
- requires:
cluster_features: ["mapper.dense_vector.rescore_zero_vector"]
reason: Needs rescore_zero_vector feature

- do:
indices.create:
index: bbq_rescore_0_hnsw
Expand Down Expand Up @@ -390,9 +369,6 @@ setup:
- match: { .bbq_rescore_update_hnsw.mappings.properties.vector.index_options.rescore_vector.oversample: 0 }
---
"Test index configured rescore vector score consistency":
- requires:
cluster_features: ["mapper.dense_vector.rescore_zero_vector"]
reason: Needs rescore_zero_vector feature
- skip:
features: "headers"
- do:
Expand Down Expand Up @@ -570,9 +546,6 @@ setup:

---
"default oversample value":
- requires:
cluster_features: ["mapper.dense_vector.default_oversample_value_for_bbq"]
reason: "Needs default_oversample_value_for_bbq feature"
- do:
indices.get_mapping:
index: bbq_hnsw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,6 @@ setup:
---
# Won't be true for larger datasets, but this helps checking kNN vs rescoring vs exact search
"Vector rescoring has the same scoring as exact search for kNN section":
- requires:
reason: 'Quantized vector rescoring is required'
test_runner_features: [capabilities]
capabilities:
- method: GET
path: /_search
capabilities: [knn_quantized_vector_rescore_oversample]
- skip:
features: "headers"

Expand Down Expand Up @@ -434,36 +427,6 @@ setup:
- match: { hits.hits.2._score: $rescore_score2 }

---
"Test bad quantization parameters":
- do:
catch: bad_request
indices.create:
index: bad_hnsw_quantized
body:
mappings:
properties:
vector:
type: dense_vector
dims: 5
element_type: byte
index: true
index_options:
type: int8_hnsw

- do:
catch: bad_request
indices.create:
index: bad_hnsw_quantized
body:
mappings:
properties:
vector:
type: dense_vector
dims: 5
index: false
index_options:
type: int8_hnsw
---
"Test create, merge, and search cosine":
- do:
indices.create:
Expand Down Expand Up @@ -539,9 +502,6 @@ setup:
- match: { hits.hits.2._id: "3"}
---
"Test create, merge, and search dot_product":
- requires:
cluster_features: "gte_v8.12.0"
reason: 'kNN float to byte quantization added in 8.12'
- do:
indices.create:
index: hnsw_byte_quantized_merge_dot_product
Expand Down Expand Up @@ -616,9 +576,6 @@ setup:
- match: { hits.hits.2._id: "3"}
---
"Test index configured rescore vector":
- requires:
cluster_features: ["mapper.dense_vector.rescore_vector"]
reason: Needs rescore_vector feature
- skip:
features: "headers"
- do:
Expand Down Expand Up @@ -691,10 +648,6 @@ setup:
- match: { hits.hits.2._score: $rescore_score2 }
---
"Test index configured rescore vector updateable and settable to 0":
- requires:
cluster_features: ["mapper.dense_vector.rescore_zero_vector"]
reason: Needs rescore_zero_vector feature

- do:
indices.create:
index: int8_rescore_0_hnsw
Expand Down Expand Up @@ -749,9 +702,6 @@ setup:
- match: { .int8_rescore_update_hnsw.mappings.properties.vector.index_options.rescore_vector.oversample: 0 }
---
"Test index configured rescore vector score consistency":
- requires:
cluster_features: ["mapper.dense_vector.rescore_zero_vector"]
reason: Needs rescore_zero_vector feature
- skip:
features: "headers"
- do:
Expand Down
Loading