On 10/1/22 13:37, Christopher Schultz wrote:
I'm using SolrJ client and just specifying a document field like this:

document.addField("fieldName", "foo:bar");

I think if you use it in this way, it does get properly escaped. Escaping characters in a query is mainly something to be concerned about when constructing a query as a text string and sending the string directly to Solr rather than using objects and a specifically tailored API like SolrJ.

Thanks,
Shawn

Reply via email to