Hello All,
I am new to solr and trying to configure highlighting. If I look at the result in xml, or json format, I can see the highlighting part of the data and it looks good. However the velocity page does not show the highlighted words on my result page. Do I need to do something extra for the highlighting results to show up on the page that is generated by Velocity?

 Here is my hl setting in solrconfig.xml:
<str name="hl">on</str>
<str name="hl.fl">seriesTitle</str>
<str name="f.name.hl.fragsize">0</str>
<str name="f.name.hl.alternateField">seriesTitle</str>

Here is those fields in schema.xml:
<field name="seriesTitle" type="text" indexed="true" stored="true"/>

<fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
      <analyzer type="index">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.StopFilterFactory"
                ignoreCase="true"
                words="stopwords.txt"
          />
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
        <filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
        <filter class="solr.PorterStemFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
        <filter class="solr.StopFilterFactory"
                ignoreCase="true"
                words="stopwords.txt"
                />
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
        <filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
        <filter class="solr.PorterStemFilterFactory"/>
      </analyzer>
    </fieldType>

Thank you in advance.
--
Misagh Karimi

Reply via email to