Search in sources :

Example 1 with KeywordFieldType

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));
}
Also used : KeywordFieldType(org.elasticsearch.index.mapper.KeywordFieldMapper.KeywordFieldType)

Aggregations

KeywordFieldType (org.elasticsearch.index.mapper.KeywordFieldMapper.KeywordFieldType)1