2013-07-01 10:03:37 -04:00
|
|
|
---
|
|
|
|
"Realtime":
|
|
|
|
|
2014-02-04 05:06:17 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
refresh_interval: -1
|
2014-02-10 05:31:26 -05:00
|
|
|
number_of_replicas: 0
|
2014-02-04 05:06:17 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
2014-02-10 05:31:26 -05:00
|
|
|
wait_for_status: green
|
2014-02-04 05:06:17 -05:00
|
|
|
|
2013-07-01 10:03:37 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
realtime: 1
|
|
|
|
|
|
|
|
- match: { '': {foo: bar}}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: missing
|
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
realtime: 0
|
|
|
|
|
|
|
|
- do:
|
|
|
|
get_source:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
realtime: 0
|
|
|
|
refresh: 1
|
|
|
|
|
|
|
|
- match: { '': {foo: bar}}
|
|
|
|
|