The sample code for SynonymGraphFilterFactory is written (I assume) in
Solr. Could someone provide a Java translation? Thanks.
This is what I see:
<fieldType name="text_synonym" class="solr.TextField"
positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymGraphFilterFactory" synonyms="synonyms.txt"
format="solr" ignoreCase="false" expand="true"
tokenizerFactory="solr.WhitespaceTokenizerFactory"
[optional tokenizer factory parameters]/>
</analyzer>
</fieldType>
Mike L