[TEST] fix CommonTermsQueryBuilderTest
This commit is contained in:
parent
06d9948b09
commit
33a7839cfb
|
@ -137,6 +137,8 @@ public class CommonTermsQueryBuilderTest extends BaseQueryTestCase<CommonTermsQu
|
||||||
@Test
|
@Test
|
||||||
public void testNoTermsFromQueryString() throws IOException {
|
public void testNoTermsFromQueryString() throws IOException {
|
||||||
CommonTermsQueryBuilder builder = new CommonTermsQueryBuilder(STRING_FIELD_NAME, "");
|
CommonTermsQueryBuilder builder = new CommonTermsQueryBuilder(STRING_FIELD_NAME, "");
|
||||||
assertNull(builder.toQuery(createContext()));
|
QueryParseContext context = createContext();
|
||||||
|
context.setAllowUnmappedFields(true);
|
||||||
|
assertNull(builder.toQuery(context));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue