Skip to content

Commit 38e658a

Browse files
committed
iter
1 parent 6d2b3b1 commit 38e658a

File tree

2 files changed

+0
-63
lines changed

2 files changed

+0
-63
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/46_knn_search_bbq_ivf.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -198,47 +198,6 @@ setup:
198198
index_options:
199199
type: bbq_ivf
200200
---
201-
"Test few dimensions fail indexing":
202-
- do:
203-
catch: bad_request
204-
indices.create:
205-
index: bad_bbq_ivf
206-
body:
207-
mappings:
208-
properties:
209-
vector:
210-
type: dense_vector
211-
dims: 42
212-
index: true
213-
index_options:
214-
type: bbq_ivf
215-
216-
- do:
217-
indices.create:
218-
index: dynamic_dim_bbq_ivf
219-
body:
220-
mappings:
221-
properties:
222-
vector:
223-
type: dense_vector
224-
index: true
225-
similarity: l2_norm
226-
index_options:
227-
type: bbq_ivf
228-
229-
- do:
230-
catch: bad_request
231-
index:
232-
index: dynamic_dim_bbq_ivf
233-
body:
234-
vector: [1.0, 2.0, 3.0, 4.0, 5.0]
235-
236-
- do:
237-
index:
238-
index: dynamic_dim_bbq_ivf
239-
body:
240-
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]
241-
---
242201
"Test index configured rescore vector":
243202
- skip:
244203
features: "headers"

server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,28 +2316,6 @@ public void testKnnBBQHNSWVectorsFormat() throws IOException {
23162316
assertEquals(expectedString, knnVectorsFormat.toString());
23172317
}
23182318

2319-
public void testBBQIVFVectorsFormatDisallowsNested() throws IOException {
2320-
assumeTrue("feature flag [ivf_format] must be enabled", IVF_FORMAT.isEnabled());
2321-
IllegalArgumentException e = expectThrows(IllegalArgumentException.class, () -> createDocumentMapper(fieldMapping(b -> {
2322-
b.field("type", "nested");
2323-
b.startObject("properties");
2324-
b.startObject("field");
2325-
b.field("type", "dense_vector");
2326-
b.field("dims", randomIntBetween(64, 4096));
2327-
b.field("index", true);
2328-
b.field("similarity", "dot_product");
2329-
b.startObject("index_options");
2330-
b.field("type", "bbq_ivf");
2331-
b.endObject();
2332-
b.endObject();
2333-
b.endObject();
2334-
})));
2335-
assertThat(
2336-
e.getMessage(),
2337-
containsString("fields with index type [bbq_ivf] cannot be indexed if they're within [nested] mappings")
2338-
);
2339-
}
2340-
23412319
public void testKnnBBQIVFVectorsFormat() throws IOException {
23422320
assumeTrue("feature flag [ivf_format] must be enabled", IVF_FORMAT.isEnabled());
23432321
final int dims = randomIntBetween(64, 4096);

0 commit comments

Comments
 (0)