Query DSL: query_string / field to use the optimized match_all query when using * (or *:*), closes #413.

This commit is contained in:
kimchy 2010-10-07 16:48:24 +02:00
parent 504a5458c5
commit d0bf743ab4
5 changed files with 12 additions and 5 deletions

View file

@ -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";