Re: removing whitespaces in query

2013-03-07 Thread Upayavira
of filters is correct. I guess > > you should use charFilter at the beginning of the chain only, and > > patternReplace after the tokenizer. > > * If you use ICUFoldingFilter you won't need LowerCaseFilter, it would > > be redundant. LowerCase might do the job &

Re: removing whitespaces in query

2013-03-07 Thread Hannah Ullrich
* A LenghtFilterFactory can be helpfull against odd term of only one character * You do have a type attribute="query" in your analyzer element. Do the two chains correspond or could you do with an analyzer for both index and query? Regards Oliver Original-Nachricht -

Re: removing whitespaces in query

2013-03-07 Thread Oliver Schihin
ent. Do the two chains correspond or could you do with an analyzer for both index and query? Regards Oliver Original-Nachricht -------- Betreff: Re: removing whitespaces in query Von: Jochen Lienhard An: solr-user@lucene.apache.org Datum: 07.03.2013 11:04 Hello Jilal and Oliver, h

Re: removing whitespaces in query

2013-03-07 Thread Jochen Lienhard
Hello Jilal and Oliver, hmmm ... I don't know, how two fields can help. The problem seems to be, that solr does not recognize the whitespace. We are using following analyser: replacement="blubb" replace="all"/> mapping="mapping-ISOLatin1Accent.txt"/> It replaces in the Query: Frei 91 \

Re: removing whitespaces in query

2013-03-07 Thread Oliver Schihin
Hello Jochen What are your tokenizers? I guess it should be 'KeywordTokenizerFactory'. To fully understand, you might send the whole analyzer chain. But there might be a simple mistake in your pattern, character classes are enclosed by square brackets. We do a replace of all non-alphanumeric

Re: removing whitespaces in query

2013-03-07 Thread Jilal Oussama
You can use two fields, in one you keep the original data, and use the second one as a copy field and use the Pattern Replace Filter combined with the Keyword Tockenizer. 2013/3/7 Jochen Lienhard > Hello, > > we have indexed a field, where we have removed the whitespaces before the > indexing.