Please use the following field type definitions.
<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="org.apache.lucene.EliminateDuplicateFilterFactory" />
</analyzer>
</fieldType>
Input | Output |
---|---|
text word word text word word |
text word |
<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="org.apache.lucene.PositionFilterFactory" />
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>
Input | Output |
---|---|
text word word text word word |
text word |