Skip to content

Commit

Permalink
[TEST] restored testing against _all type
Browse files Browse the repository at this point in the history
  • Loading branch information
javanna committed May 22, 2015
1 parent 123f49b commit 00df861
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest;
import org.elasticsearch.cluster.ClusterService;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.cluster.metadata.MetaData;
import org.elasticsearch.common.compress.CompressedString;
import org.elasticsearch.common.inject.AbstractModule;
import org.elasticsearch.common.inject.Injector;
Expand Down Expand Up @@ -151,14 +152,11 @@ public void beforeTest() {
types[i] = randomFrom(currentTypes);
}
} else {
/* norelease waiting for a fix on master that restores support for _all type
if (randomBoolean()) {
types = new String[]{MetaData.ALL};
} else {
types = new String[0];
}
*/
types = new String[0];
}
//some query (e.g. range query) have a different behaviour depending on whether the current search context is set or not
//which is why we randomly set the search context, which will internally also do QueryParseContext.setTypes(types)
Expand Down

0 comments on commit 00df861

Please sign in to comment.