I am facing a problem with the case sensitivity of SolrNet Filters. e.g. new SolrQueryByField(“City”, “Chicago”) returns the results but SolrQueryByField(“City”, “chicago”) does not return anything because “chicago” is in lower case.
I am not sure how to turn case sensitivity off for filters. I don’t want any of my fields to be case sensitive, how can i achieve this?
Field
Cityis probably unanalyzed (i.e. of typesolr.StrField). Make sure it uses aTextFieldwithLowerCaseFilterFactory. See for exampletext_generalin the sample Solr schema. After changing your schema you’ll have to rebuild your index.