Fix test failure resulting from #8872 change.

This commit is contained in:
Ryan Ernst 2015-02-12 13:59:59 -08:00
parent 75e7ce9c51
commit 1e67b9edbd

View File

@ -19,6 +19,7 @@
package org.elasticsearch.nested; package org.elasticsearch.nested;
import com.carrotsearch.randomizedtesting.annotations.Seed;
import org.apache.lucene.search.Explanation; import org.apache.lucene.search.Explanation;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus; import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
import org.elasticsearch.action.admin.cluster.stats.ClusterStatsResponse; import org.elasticsearch.action.admin.cluster.stats.ClusterStatsResponse;
@ -1211,7 +1212,7 @@ public class SimpleNestedTests extends ElasticsearchIntegrationTest {
// only when querying with nested the fixed bitsets are loaded // only when querying with nested the fixed bitsets are loaded
SearchResponse searchResponse = client().prepareSearch("test") SearchResponse searchResponse = client().prepareSearch("test")
.setQuery(nestedQuery("array1", termQuery("field1", "value1"))) .setQuery(nestedQuery("array1", termQuery("array1.field1", "value1")))
.get(); .get();
assertNoFailures(searchResponse); assertNoFailures(searchResponse);
assertThat(searchResponse.getHits().totalHits(), equalTo(5l)); assertThat(searchResponse.getHits().totalHits(), equalTo(5l));