use of org.elasticsearch.index.mapper.KeywordFieldMapper.KeywordFieldType in project elasticsearch by elastic.
the class KeywordFieldTypeTests method testIsFieldWithinQuery.
public void testIsFieldWithinQuery() throws IOException {
KeywordFieldType ft = new KeywordFieldType();
// current impl ignores args and shourd always return INTERSECTS
assertEquals(Relation.INTERSECTS, ft.isFieldWithinQuery(null, RandomStrings.randomAsciiOfLengthBetween(random(), 0, 5), RandomStrings.randomAsciiOfLengthBetween(random(), 0, 5), randomBoolean(), randomBoolean(), null, null, null));
}
Aggregations