mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Query DSL: query_string / field to use the optimized match_all query when using * (or *:*), closes #413.
This commit is contained in:
parent
504a5458c5
commit
d0bf743ab4
5 changed files with 12 additions and 5 deletions
|
@ -77,12 +77,13 @@ public class HdfsGatewayTests {
|
|||
node.close();
|
||||
}
|
||||
|
||||
@Test public void testHdfsGateway() {
|
||||
@Test public void testHdfsGateway() throws Exception {
|
||||
// first, test meta data
|
||||
CreateIndexResponse createIndexResponse = node.client().admin().indices().create(createIndexRequest("test")).actionGet();
|
||||
assertThat(createIndexResponse.acknowledged(), equalTo(true));
|
||||
node.close();
|
||||
node = buildNode().start();
|
||||
Thread.sleep(500);
|
||||
try {
|
||||
node.client().admin().indices().create(createIndexRequest("test")).actionGet();
|
||||
assert false : "index should exists";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue