lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Rochkind <>
Subject RE: indexing '-
Date Sun, 31 Oct 2010 23:17:50 GMT
What do you actually want to do? Give an example of a string that would be found in the source
document (to index), and a few queries that you want to match it (and that presumably aren't
matching it with the methods you've tried, since you say "it doesn't work")

Both a string type or a text type set to KeywordTokenizer (and with no other analyzers, as
in your example) should/will index exactly what is in your source document. 

My guess is that you aren't happy with this because in fact you DO want tokenization, which
neither of those options will get you.   But you haven't given enough information for us to
know what you actually want to do, and without knowing what you're trying to do we cant' tell
you why what you've tried doesn't do it, or brainstorm for ways to do it differently.  What
"doesn't work"? 
From: PeterKerk []
Sent: Sunday, October 31, 2010 1:13 PM
Subject: Re: indexing '-

I already tried the normal string type, but that doesnt work either.
I now use this:
    <fieldType name="mytype" class="solr.TextField" sortMissingLast="true"
        <tokenizer class="solr.KeywordTokenizerFactory"/>

But that doesnt do it either...what else can I try?

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message