lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Case Insensitive search while preserving case
Date Tue, 04 May 2010 23:29:52 GMT
> I've looked through the history and tried a lot of things
> but can't quite get
> this to work.
> 
> Used this in my last attempt:
> 
>     <fieldType name="lowercase"
> class="solr.TextField"
> positionIncrementGap="100">
>       <analyzer>
>         <tokenizer
> class="solr.KeywordTokenizerFactory"/>
>         <filter
> class="solr.LowerCaseFilterFactory" />
>       </analyzer>
>     </fieldType>
> 
> 
> What I'm looking to do is allow user's to execute case
> insensitive searches,
> which this does.  "BLaH" should return all the
> "Blah"s.  However, what this
> also seems to do is render the values lowercased when I do
> faceted or stats
> queries, or if I do a terms search.  Always returned
> as "blah".
> 
> Is there any way to only ever get the original value out of
> Solr no matter
> how I ask for it? 

Making your field stored="true" and requesting it with &fl=lowercaseField does not satisfy
your needs?


      

Mime
View raw message