Skip to content

Commit

Permalink
Remove shard settings; only check for counts and not specific doc IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
kderusso committed Dec 16, 2024
1 parent 7d76519 commit 7f6d1da
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ setup:
inference_id: sparse-inference-id
non_inference_field:
type: text
settings:
number_of_shards: 1
number_of_replicas: 0

- do:
indices.create:
Expand All @@ -76,9 +73,6 @@ setup:
inference_id: dense-inference-id
non_inference_field:
type: text
settings:
number_of_shards: 1
number_of_replicas: 0

- do:
indices.create:
Expand Down Expand Up @@ -216,8 +210,6 @@ setup:
query: "inference test"

- match: { hits.total.value: 2 }
- match: { hits.hits.0._id: "doc_1" }
- match: { hits.hits.1._id: "doc_2" }

# Test querying multiple indices that either use the same inference ID or combine semantic_text with lexical search
- do:
Expand Down Expand Up @@ -252,9 +244,6 @@ setup:
query: "inference test"

- match: { hits.total.value: 3 }
- match: { hits.hits.0._id: "doc_1" }
- match: { hits.hits.1._id: "doc_3" }
- match: { hits.hits.2._id: "doc_2" }

---
"Query a field that has no indexed inference results":
Expand Down

0 comments on commit 7f6d1da

Please sign in to comment.