Analyzer for indexing only, not for queries

2010-03-12 Thread Michael Kuhlmann
Hi all, I have a field with some kind of category tree as a string. The format is like this: prefixfirstsecond#prefixotherfirstothersecond So, the document is categorized in two categories, separated by '#', and all categories start with the same prefix which I don't want to use. For

Re: Analyzer for indexing only, not for queries

2010-03-12 Thread Erick Erickson
Well, what would you have SOLR do that makes sense if you don't define a query analyzer? Very very strange things happen if you use different analyzers for indexing and querying. At least defaulting that way has a *chance* of giving expected results... Why not use, say, KeywordTokenizerFactory if

KeywordTokenizer for faceting; was: Re: Analyzer for indexing only, not for queries

2010-03-12 Thread Michael Kuhlmann
Hi Erick, thank you very much for your help. What's confusing me is that another of my fields does not have any analyzers defined at all, and it's working fine without problems. So, it must be possible to define field type without specifying any analyzers. I don't understand why it shouldn't be

Re: KeywordTokenizer for faceting; was: Re: Analyzer for indexing only, not for queries

2010-03-12 Thread Erick Erickson
What's confusing me is that another of my fields does not have any analyzers defined at all, and it's working fine without problems. Field or fieldType? So, it must be possible to define field type without specifying any analyzers. Truth to tell, I don't know off the top of my head what

Re: KeywordTokenizer for faceting; was: Re: Analyzer for indexing only, not for queries

2010-03-12 Thread Michael Kuhlmann
Hi Erick, On 03/12/10 17:09, Erick Erickson wrote: What's confusing me is that another of my fields does not have any analyzers defined at all, and it's working fine without problems. Field or fieldType? ...one of my fields with a fieldtype that does not have any analyzer defined at all,