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