You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Neil Hart <ne...@gmail.com> on 2012/02/29 19:29:06 UTC

handling case insensitive and regex

I'm just starting out...

for either
testing QA
TESTING QA

I can query with the following strings and find my text:
testing
TESTING
testing*

but the following doesn't work.
TESTING*

any ideas?
thanks
Neil

Re: handling case insensitive and regex

Posted by Ahmet Arslan <io...@yahoo.com>.
> but the following doesn't work.
> TESTING*

Please see the following writeups:

http://wiki.apache.org/solr/MultitermQueryAnalysis 

http://www.lucidimagination.com/blog/2011/11/29/whats-with-lowercasing-wildcard-multiterm-queries-in-solr/

handling case insensitive and regex

Posted by Neil Hart <ne...@gmail.com>.
I'm just starting out...

for either
testing QA
TESTING QA

I can query with the following strings and find my text:
testing
TESTING
testing*

but the following doesn't work.
TESTING*

any ideas?
thanks
Neil

Re: handling case insensitive and regex

Posted by Emmanuel Espina <es...@gmail.com>.
What query parser are you using? It looks like Lucene Query Parser or edismax.
The cause is that wildcard queries does not get analyzed. So even if
you have lowercase filters in the analysis chain that is not being
applied when you search using *

Thanks
Emmanuel

2012/2/29 Neil Hart <ne...@gmail.com>:
> I'm just starting out...
>
> for either
> testing QA
> TESTING QA
>
> I can query with the following strings and find my text:
> testing
> TESTING
> testing*
>
> but the following doesn't work.
> TESTING*
>
> any ideas?
> thanks
> Neil