Hi Mahendra,

Wildcard searches are case-sensitive in Solr. I faced the same issue and 
handled converting the query string to lower case in my code itself. The 
filters and analyzers are not applicable for wildcard queries.


FYI
You will also face problem when you use keywords/Operators in your queries in 
the upper case. Queries like "Jack AND Jill" or containing words like "OR", 
"NOT", etc will throw errors from the SolrQueryParser. You will have to convert 
such strings to lower-case too. In this case, the exception is thrown during 
the parsing stage itself. Again, the filters and analyzers have no effect 
(since they never come into the picture here too)

-Kumar

-----Original Message-----
From: mahendra mahendra [mailto:[email protected]] 
Sent: Friday, February 06, 2009 12:34 PM
To: [email protected]
Subject: wildcard search issue

Hi,
 
The case sensitive wild-card search is not working for TextField type.
I have tried searching for UserName:cust*, it gave the results, but 
UserName:Cust* didn't give any results. How can I make it work..
I have defined my TextField in following way.
 
 <fieldtype name="textTight" class="solr.TextField" positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
</fieldtype> 
  
Any help would appreciate!!

Thanks & Regards,
Mahendra


      

Reply via email to