Hi,

I am indexing around 2000 names using solr. highlight flag is on while
querying.

For some name i am getting the search substring appened at the start.

Suppose my search query is "*Rak*".In my database i have "*Rakesh Chaturvedi
*" name.
I am getting "*<em>Rak</em><em>Rak</em>esh Chaturvedi*" as the response.

Same the case with the following names.

Search "Dhar" ------ highlight "<em>Dhar</em><em>Dhar</em>mesh Darshan"
Search "Suda"------ highlight "<em>Suda</em><em>Suda</em>rshan Faakir"

Can someone help me?

I am using the following filters for index and query.

<fieldType name="text_autofill" class="solr.TextField"
positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.KeywordTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" preserveOriginal="1"/>
        <filter class="solr.EdgeNGramFilterFactory" minGramSize="1"
maxGramSize="50" side="front"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" preserveOriginal="1"/>
      </analyzer>
    </fieldType>

Thanks and Regards,
Radha Krishna Reddy.

Reply via email to