If using java - there is a utility class/method for example
import org.apache.solr.client.solrj.util.ClientUtils;
solrQuery.addFilterQuery("field_name:" +
ClientUtils.escapeQueryChars(field_value));-Tim On Tue, Feb 13, 2024 at 1:28 AM Ohms, Jannis <[email protected]> wrote: > Hi all, > > I want to use user supplied input in my get based solr query. I want to > sanitize my input to protect against queryinjection. Is there a function > or regex I could use ? > >
