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 [vettepa...@hotmail.com] Sent: Sunday, October 31, 2010 1:13 PM To: solr-user@lucene.apache.org 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" omitNorms="true"> <analyzer> <tokenizer class="solr.KeywordTokenizerFactory"/> </analyzer> </fieldType> But that doesnt do it either...what else can I try? Thanks! -- View this message in context: http://lucene.472066.n3.nabble.com/indexing-tp1816969p1817298.html Sent from the Solr - User mailing list archive at Nabble.com.