This was at example solrconfig file:

  <requestHandler name="/browse" class="solr.SearchHandler">
    <lst name="defaults">
      <str name="defType">dismax</str>
      <str name="echoParams">explicit</str>
      <float name="tie">0.01</float>
      <str name="qf">content^0.5 anchor^1.0 title^1.2</str>
      <str name="pf">content^0.5 anchor^1.5 title^1.2 site^1.5</str>
      <str name="fl">url</str>
      <int name="ps">100</int>
      <bool name="hl">true</bool>
      <str name="q.alt">*:*</str>
      <str name="hl.fl">title url content</str>
      <str name="f.title.hl.fragsize">0</str>
      <str name="f.title.hl.alternateField">title</str>
      <str name="f.url.hl.fragsize">0</str>
      <str name="f.url.hl.alternateField">url</str>
      <str name="f.content.hl.fragmenter">regex</str>
      </lst>
  </requestHandler>


Then I've created that one:

  <requestHandler name="/select2" class="solr.SearchHandler">
     <lst name="defaults">
            <str name="defType">edismax</str>
              <str name="echoParams">explicit</str>
              <str name="wt">json</str>
               <int name="rows">10</int>
               <str name="df">text</str>
               <bool name="hl">true</bool>
                <str name="q.alt">*:*</str>
                <str name="hl.fl">title url content</str>
                <str name="f.title.hl.fragsize">0</str>
                <str name="f.title.hl.alternateField">title</str>
               <str name="f.url.hl.fragsize">0</str>
                <str name="f.url.hl.alternateField">url</str>
           <str name="f.content.hl.fragmenter">regex</str>
       </lst></requestHandler>

However it doesn't highlight anymore?

Reply via email to