Make field name case insensitive at search time in Solr

Viewed 19

I would like to know if it is possible to make ONLY the field name case insensitive at search time in Apache Solr?

For example:

name:bob
Name:bob
nAmE:bob
NAME:bob

Using the solr admin client I get an error like the following if the case is not lowercase:

"metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"undefined field Name",

I use the SolrJ Java client for communicating with my instance of Solr. In theory I could intercept the query and parse out the field name and always make it lowercase, but I wondered if there was another way already available in Solr.

Thanks

0 Answers
Related