Hello,

Watched the JIRA issue and saw that it got commited recently.  Just tested
it and it works *perfectly*, thanks Uri adding such a nice feature to Solr!

For other users out there who want to do this:

1. Download the latest nightly build of Solr 1.5-dev at
http://people.apache.org/builds/lucene/solr/nightly/
2. For the index field you were using to do terms auto-suggest, rebuild it
without using LowercaseFilterFactory so that it indexes the original mixed
case terms
3. In your terms HTTP GET URL, replace terms.prefix=abc (where abc is
actually what the user is typing in) with

terms.regex=%5Eabc.%2A&terms.regex.flag=case_insensitive

where %5E = ^ and %2A = *

Voila!


hermida wrote:
> 
> 
> Uri Boness wrote:
>> 
>> Just updated SOLR-1625 to support regexp hints.
>> 
>> https://issues.apache.org/jira/browse/SOLR-1625
>> 
>> Cheers,
>> Uri
>> 
> 
> This is perfect, exactly what is needed to make this functionality
> possible.  Is the patch already in trunk? 
> 
> thanks,
> leandro
> 

-- 
View this message in context: 
http://old.nabble.com/how-to-do-auto-suggest-w--case-insensitive-search-and-suggesting-original-mixed-case-field-values-tp26636365p26775120.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to