I'm not sure if I did this the right way but here's what I ended up
using:

<fieldType name="string" class="solr.TextField" sortMissingLast="true"
omitNorms="true">
        <analyzer>
                <tokenizer class="solr.KeywordTokenizerFactory"/>
                <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
</fieldType>

According to the comments:

<!-- KeywordTokenizer does no actual tokenizing, so the entire input
string is preserved as a single token -->

Note: I had to use the TextField instead of StrField. 

-----Original Message-----
From:
solr-user-return-20238-laurent.vauthrin=disney....@lucene.apache.org
[mailto:solr-user-return-20238-laurent.vauthrin=disney....@lucene.apache
.org] On Behalf Of Walter Underwood
Sent: Monday, March 30, 2009 12:08 PM
To: solr-user@lucene.apache.org
Subject: Lower-cased string fieldtype?

I need a lower-cased string fieldtype (to use with the
ElevationComponent),
but I'm temporarily stuck. The LowerCaseFilter needs a tokenizer, but I
don't want to tokenize. What am I missing?

wunder

Reply via email to