I'm trying to use CQL filters in WFS, like (with proper URL encoding):
&cql_filter=strEqualsIgnoreCase(name, 'Jane Doe') &cql_filter=strMatches(name, '(?i).* doe')
But this tells me, e.g.:
java.lang.ClassCastException: org.geotools.filter.function.FilterFunction_strMatches cannot be cast to org.opengis.filter.Filter
The CQL and ECQL documentation claims:
CQL/ECQL can use any of the filter functions available in GeoServer.
The functions I'm trying to use are listed there, and I can indeed use some of the other functions, like the following works just fine:
&cql_filter=strToLowerCase(name) like '% doe'
However, many other functions throw an error like above.