2009/12/17 Steinar Asbjørnsen <steinar...@gmail.com>

> Hi all.
>
> I have a delicate problem when it comes to two words that are rather
> similar in the way they are typed, but when it comes to the meaning of the
> word they are completely different.
> The actual words are restaurant (as in restaurant) and restaurering (as in
> restoration).
>
> Solr seems to think these words are similar enough to present hits on both
> of them in the same search result.
> Obviously this is not desirable.
>
> Is there a way to take care of such spesific cases without disabling solr
> functionality for stemming and/or plurals?
> Or would I need to disable stemming to make this special case disapear?
>
>
For specific cases like this, you can add the word to a file and specify it
in schema, for example:

<filter class="solr.SnowballPorterFilterFactory" language="English"
protected="protwords.txt"/>

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to