I am using Solr 8.3 and trying to pass a synonym file in wordnet format, such as-
s(300880586,1,'augmented',s,1,0).
s(300880765,1,'enhanced',s,1,0).
s(300881030,1,'hyperbolic',s,1,2).
s(300881030,2,'inflated',s,1,1).
In the managed-schema file, I have configured the Synonym Graph Filter as-
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100" multiValued="true">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/>
<filter class="solr.SynonymGraphFilterFactory" synonyms="wn_s.pl" format="wordnet" ignoreCase="true"/>
<filter class="solr.FlattenGraphFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/>
<filter class="solr.SynonymGraphFilterFactory" synonyms="wn_s.pl" format="wordnet" expand="true" ignoreCase="true" />
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
However, it did not work. Perhaps I might have missed some configuration or maybe some issue with format.
So I tried converting the file into Solr format, it works that way somehow.
I wanted to use the wordnet format only, so if anyone can help me understand the mistake I am making here, it would be helpful.