lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajani Maski <>
Subject split on white space and then EdgeNGramFilterFactory
Date Thu, 02 Aug 2012 12:26:23 GMT

   I wanted to do split on white space and then apply

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

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

Any suggestions?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message