lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbarani <bbar...@gmail.com>
Subject Re: Partial match autosuggest (match a word occurring anywhere in a field)
Date Wed, 17 Dec 2014 20:03:11 GMT
Thanks for your response.

I fixed this issue by using the <filter class="solr.PositionFilterFactory"
/>

 <fieldType name="edgytext" class="solr.TextField"
positionIncrementGap="100" omitNorms="true">
      <analyzer type="index">
        <filter class="solr.LowerCaseFilterFactory"/> 
        <tokenizer class="solr.KeywordTokenizerFactory"/>
        <filter class="solr.NGramFilterFactory" minGramSize="1"
maxGramSize="15" /> 
      </analyzer>
      <analyzer type="query">
        <filter class="solr.LowerCaseFilterFactory"/> 
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.ShingleFilterFactory" outputUnigrams="true"
outputUnigramIfNoNgram="true" maxShingleSize="99"/>
        <filter class="solr.PositionFilterFactory" />
      </analyzer>
    </fieldType> 



--
View this message in context: http://lucene.472066.n3.nabble.com/Predictive-search-match-a-word-occurring-anywhere-in-a-field-tp4174660p4174822.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message