It is somethings necessary to build Solr query in Velocity, and we need to be able to escape special characters: https://solr.apache.org/guide/solr/latest/query-guide/standard-query-parser.html#escaping-special-characters Something like $escapetool.standardSolr or $escapetool.solr would be nice to have. Note (for both a workaround and an implementation suggestion) that it should be possible to escape for solr by just adding a backslash behind each character of the string. |