I am new to Solr. Just wetting my feet, trying to set it up and to migrate
our in-house search to it.
Is it possible to define a field type that is not tokenized, but has a
lowercase filtering? I'm sure I can do it in java code, but I am looking for
an XML file solution. Basically Foo Bar and foo
not find a way to
add a filter without also adding a tokenizer. And there is nothing like a
ready to use null tokenizer.
I am using Solr-4.0.0-BETA.
Alexandre Rafalovitch wrote
Just look towards the bottom of the schema.xml and compare field types
definition for string and text, it should be fairly
That sounds right, thanks! I missed KeywordTokenizerFactory, with a name like
that it did not sound like what I wanted. I expected NullTokenizerFactory or
something standing out like that :)
Jack Krupansky-2 wrote
Use the KeywordTokenizerFactory for your text field tokenizer to keep the
text
Just wanted to confirm that this:
fieldtype name=string_lc class=solr.TextField sortMissingLast=true
omitNorms=true
analyzer
filter class=solr.LowerCaseFilterFactory/
tokenizer class=solr.KeywordTokenizerFactory/
/analyzer
/fieldtype
...works beautifully for untokenized lowercase