kstemmer and protwords
-
13-12-2019 - |
Question
Friends,
I currently using KStemmer to perform the stemming operations in my application i develop with solr. What is found is when we use kStemmer , it is not taking the protwords.txt
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords.txt"
enablePositionIncrements="true"
/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EnglishPossessiveFilterFactory"/>
<filter class="solr.KStemFilterFactory" protected="protwords.txt"/>
</analyzer>
It is not taking the words in the protwords as protected. Is this how Kstem works?
Solution
I checked the source code but I couldn't see the implementation.Btw, I checked source-code of the Solr 3.6.
It is implemented in the SnowballPorterFilterFactory but not in KStemFilterFactory.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow