Вопрос

It is possible to define an analyzer with more than one Stem-filter for more languages?

Something like this:

<analyzer type="index">
  …
  <filter class="solr.PorterStemFilterFactory"/>  (default for english)
  <filter class="solr.SnowballPorterFilterFactory" language="German2" />
</analyzer>
Это было полезно?

Решение

is it possible? for sure.

does it makes sense? probably not. One will run after the other, and the stemmed tokens by one will be processed by the other.

If by any chance the no modified token of PorterStemFilterFactory will be modified by Snowball (so only the ones that Porter did not touch are modified by it), it would work fine. But I doubt it.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top