In 3.5.0 we have the following.

    <fieldType name="autocomplete" class="solr.TextField"
positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.EdgeNGramFilterFactory" minGramSize="1"
maxGramSize="30"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>

If we searched for "c" with highlighting enabled we would get back
results such as:

<em>c</em>dat
<em>c</em>rocdile
<em>c<e/m>ool beans

But in the latest Solr (4.7.1) we get the full words highlighted back.
Did something change from these versions with regards to highlighting?

Thanks

Found an old post but no info:

http://lucene.472066.n3.nabble.com/Solr-4-x-EdgeNGramFilterFactory-and-highlighting-td4114748.html

Reply via email to