derMicki
derMicki

Reputation: 55

How to configure solr schema.xml

I m a little downfallen by configuring the schema.xml for my wished searchresults. Let me show u my use case:

Word in document: "ausschließlich" (without quotes) Search string: "schließ" (without quotes) so when I search for my searchstring, I want to find all the case, where "schließ" occours. such as:
ausschließlich
schließend
schließen
...
but not
sch....
schl...
schli...
and so on..

this is my analyzer config:

<analyzer>
    <tokenizer class="solr.StandardTokenizerFactory" />  
    <filter class="solr.LowerCaseFilterFactory" />
    <filter class="solr.NGramTokenizerFactory" />
</analyzer>

would you please help me to configure it? thanks a lot..

Upvotes: 1

Views: 439

Answers (1)

Artem Lukanin
Artem Lukanin

Reputation: 556

You can read about German processing in Solr here and here. The easiest way is to substitute solr.NGramTokenizerFactory with this code:

<filter class="solr.SnowballPorterFilterFactory" language="German"/>

Upvotes: 1

Related Questions