Hi,

   I wanted to do split on white space and then apply
EdgeNGramFilterFactory.

Example : A field in a document has text content : "smart phone, i24
xpress exchange offer, 500 dollars"

smart s sm sma smar smart
phone p ph pho phon phone
i24  i i2 i24
xpress x xp xpr xpre xpres xpress

so on.....

If I search on  "xpres"  I should get this document record matched

What field type can support this?

I was trying with below one but was not able to achieve the above
requirement.

<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="25"
/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</type>

Any suggestions?

Thanks,
Rajani

Reply via email to