mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 09:29:11 +00:00
If a shard (e.g. replica) gets initialized after we indexed the document it gets refreshed internally and we find the doc and its term_vectors, thus the test fails
42 lines
941 B
YAML
42 lines
941 B
YAML
"Term vector API should return 'found: false' for docs between index and refresh":
|
|
- do:
|
|
indices.create:
|
|
index: testidx
|
|
body:
|
|
settings:
|
|
index:
|
|
translog.disable_flush: true
|
|
number_of_shards: 1
|
|
number_of_replicas: 0
|
|
refresh_interval: -1
|
|
mappings:
|
|
doc:
|
|
properties:
|
|
text:
|
|
type : "string"
|
|
term_vector : "with_positions_offsets"
|
|
|
|
- do:
|
|
cluster.health:
|
|
wait_for_status: green
|
|
|
|
- do:
|
|
index:
|
|
index: testidx
|
|
type: doc
|
|
id: 1
|
|
body:
|
|
text : "foo bar"
|
|
|
|
- do:
|
|
termvector:
|
|
index: testidx
|
|
type: doc
|
|
id: 1
|
|
realtime: 0
|
|
|
|
- match: { _index: "testidx" }
|
|
- match: { _type: "doc" }
|
|
- match: { _id: "1" }
|
|
- is_false: found
|