}
@Test
public void testWhereReferenceAnyNotLike() throws Exception {
FunctionIdent functionIdent = new FunctionIdent(AnyNotLikeOperator.NAME,
Arrays.<DataType>asList(new ArrayType(DataTypes.STRING), DataTypes.STRING));
FunctionImplementation anyNotLikeImpl = functions.get(functionIdent);
Function anyNotLike = new Function(anyNotLikeImpl.info(),
Arrays.<Symbol>asList(tagsField,
Literal.newLiteral("foo%")));
xcontentAssert(anyNotLike, "{\"query\":{\"regexp\":{\"tags\":{\"value\":\"~(foo.*)\",\"flags\":\"COMPLEMENT\"}}}}");