2014-11-07 14:04:35 -05:00
|
|
|
"Term vector API should return 'found: false' for docs between index and refresh":
|
2014-08-01 09:28:49 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: testidx
|
|
|
|
body:
|
|
|
|
settings:
|
2014-11-07 14:04:35 -05:00
|
|
|
index:
|
|
|
|
translog.disable_flush: true
|
|
|
|
number_of_shards: 1
|
|
|
|
number_of_replicas: 0
|
|
|
|
refresh_interval: -1
|
2014-08-01 09:28:49 -04:00
|
|
|
mappings:
|
|
|
|
doc:
|
2014-11-07 14:04:35 -05:00
|
|
|
properties:
|
|
|
|
text:
|
|
|
|
type : "string"
|
|
|
|
term_vector : "with_positions_offsets"
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: green
|
|
|
|
|
2014-08-01 09:28:49 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: testidx
|
|
|
|
type: doc
|
|
|
|
id: 1
|
|
|
|
body:
|
2014-11-07 14:04:35 -05:00
|
|
|
text : "foo bar"
|
2014-08-01 09:28:49 -04:00
|
|
|
|
|
|
|
- do:
|
2014-11-13 09:05:09 -05:00
|
|
|
termvectors:
|
2014-08-01 09:28:49 -04:00
|
|
|
index: testidx
|
|
|
|
type: doc
|
|
|
|
id: 1
|
2014-09-23 17:21:42 -04:00
|
|
|
realtime: 0
|
2014-08-01 09:28:49 -04:00
|
|
|
|
2014-11-07 14:04:35 -05:00
|
|
|
- match: { _index: "testidx" }
|
|
|
|
- match: { _type: "doc" }
|
|
|
|
- match: { _id: "1" }
|
|
|
|
- is_false: found
|