I am trying to search a column in the datastore and I want to check if the column name starts with the search parameter but it should be case insensitive.
It allows me to use -
query.setFilter("name.startsWith(search)");
But when I try to use this-
search=search.toLowerCase();
query.setFilter("name.toLowerCase().startsWith(search)");
I get the following error message -
javax.jdo.JDOUserException: Problem with query : Unsupported method while parsing expression: InvokeExpression{[InvokeExpression{[PrimaryExpression{name}].toLowerCase()}].startsWith(ParameterExpression{search})}\nNestedThrowables:\ncom.google.appengine.datanucleus.query.DatastoreQuery$UnsupportedDatastoreFeatureException: Problem with query : Unsupported method while parsing expression: InvokeExpression{[InvokeExpression{[PrimaryExpression{name}].toLowerCase()}].startsWith(ParameterExpression{search})}