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
&
* 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 -
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
place of all
non-alphanumeric characters like this:
**
**
If that helps.
Regards from Basel
Oliver
---- Original-Nachricht
Betreff: removing whitespaces in query
Von: Jochen Lienhard
An: solr-user@lucene.apache.org
Datum: 07.03.2013 10:
phanumeric characters like this:
**
**
If that helps.
Regards from Basel
Oliver
Original-Nachricht
Betreff: removing whitespaces in query
Von: Jochen Lienhard
An: solr-user@lucene.apache.org
Datum: 07.03.2013 10:
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.
Hello,
we have indexed a field, where we have removed the whitespaces before
the indexing.
For example:
50A91
Frei91\:9984
Now we want allow the users to search for:
50 A 91
Frei 91 \: 9984
Our idea was to add a PatternReplaceFilterFactory in the query analyzer
to remove the whitespaces: