Ignore QueryStringQueryBuilderTests#testUnmappedFieldRewriteToMatchNoDocs when there is no type
@@ -1211,6 +1211,7 @@ public class QueryStringQueryBuilderTests extends AbstractQueryTestCase<QueryStr
}
public void testUnmappedFieldRewriteToMatchNoDocs() throws IOException {
+ assumeTrue("test runs only when at least a type is registered", getCurrentTypes().length > 0);
// Default unmapped field
Query query = new QueryStringQueryBuilder("hello")
.field("unmapped_field")
