For this scenario, you'll want to use copyField. Search on the
lowercased field, but facet on a field without lowercasing involved.
Erik
On May 4, 2010, at 7:24 PM, dbashford wrote:
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?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Case-Insensitive-search-while-preserving-case-tp777602p777602.html
Sent from the Solr - User mailing list archive at Nabble.com.