You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Eric Grobler <im...@googlemail.com> on 2010/07/29 13:00:21 UTC
A German Question
Hi Solr world,
I have a city field with german city names like:
Mölln
München
Roßdorf
and I want to do filters like:
fq=city:München
or
fq=city:munchen
I use this type definition:
<fieldtype name="cityString" class="solr.TextField">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.SnowballPorterFilterFactory" language="German"
/>
</analyzer>
</fieldtype>
But faceting then looks like:
molln
munchen
rossdorf
How can I enable case-insensitive and german agnostic character filters and
output proper formatted names in the facet result?
Thanks
Ericz
Re: A German Question
Posted by Eric Grobler <im...@googlemail.com>.
Hi Christian,
Thank you - sounds good - I will try that.
regards
Ericz
On Thu, Jul 29, 2010 at 12:04 PM, Christian Vogler <
christian.vogler@gmail.com> wrote:
> On Thursday 29 of July 2010 14:00:21 Eric Grobler wrote:
> > But faceting then looks like:
> > molln
> > munchen
> > rossdorf
> >
> > How can I enable case-insensitive and german agnostic character filters
> and
> > output proper formatted names in the facet result?
>
> Just create another field without any filtering or conversions, and use the
> copy
> field mechanism to shadow the city names there. Then, facet on that field.
>
> Best regards
> - Christian
>
Re: A German Question
Posted by Christian Vogler <ch...@gmail.com>.
On Thursday 29 of July 2010 14:00:21 Eric Grobler wrote:
> But faceting then looks like:
> molln
> munchen
> rossdorf
>
> How can I enable case-insensitive and german agnostic character filters and
> output proper formatted names in the facet result?
Just create another field without any filtering or conversions, and use the copy
field mechanism to shadow the city names there. Then, facet on that field.
Best regards
- Christian