I've been googling all day to try and figure out how to set a query to be not case sensitive. I'm currently using Florian Semm's SolrBundle at this github page. I thought it would be as simple as saying $query->setCaseSensitive(false);
or something similair, but apparently not. Any ideas? I'm using Solr4.1.6 and Symfony 2.4.1 if that makes any difference.
This is what I have so far...
$solrQuery = $this->get('solr.client.default')
->createQuery('MyBundle:User')
->addSearchTerm('name', $queryString)
->addSearchTerm('surname', $queryString);
$solrQuery->setUseWildcard(true);
$entities = $solrQuery->getResult();
This obviously returns correctly, but only if the case of the query is correct. For example, searching for "Thom" returns the entity containing "Thomas", but "thom" does not.
Thanks for any help!