2013-07-18 10:23:22 -04:00
|
|
|
---
|
2013-09-09 05:57:41 -04:00
|
|
|
"Default index":
|
2013-07-18 10:23:22 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_2
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_2
|
|
|
|
type: test
|
|
|
|
id: 42
|
|
|
|
body: { foo: bar }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.refresh:
|
|
|
|
index: [test_1, test_2]
|
|
|
|
|
|
|
|
- do:
|
|
|
|
search:
|
2014-01-08 11:37:35 -05:00
|
|
|
index: _all
|
|
|
|
type: test
|
2013-07-18 10:23:22 -04:00
|
|
|
body:
|
|
|
|
query:
|
|
|
|
match:
|
|
|
|
foo: bar
|
|
|
|
|
|
|
|
- match: {hits.total: 2}
|
2014-03-10 08:48:17 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
search:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
body:
|
|
|
|
query:
|
|
|
|
match:
|
|
|
|
foo: bar
|
|
|
|
|
|
|
|
- match: {hits.total: 1}
|
2013-07-18 10:23:22 -04:00
|
|
|
- match: {hits.hits.0._index: test_1 }
|
|
|
|
- match: {hits.hits.0._type: test }
|
|
|
|
- match: {hits.hits.0._id: "1" }
|
|
|
|
|
2014-03-10 08:48:17 -04:00
|
|
|
- do:
|
|
|
|
search:
|
|
|
|
index: test_2
|
|
|
|
type: test
|
|
|
|
body:
|
|
|
|
query:
|
|
|
|
match:
|
|
|
|
foo: bar
|
|
|
|
|
|
|
|
- match: {hits.total: 1}
|
|
|
|
- match: {hits.hits.0._index: test_2 }
|
|
|
|
- match: {hits.hits.0._type: test }
|
|
|
|
- match: {hits.hits.0._id: "42" }
|