Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10561

Unified Highlighter not responding with more than 13 snippets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 6.5
    • None
    • contrib - Velocity
    • None
    • Windows 10

    Description

      Hi, I've been working on a Solr project in Windows for a while... here i'm trying to index a book containing (118,704 words) and then do a basic term search, however the Velocity interface is not returning the expected results, Velocity will only return a maximum of 13 terms highlighted within 13 snippets, even though my snippets is set to much higher than 13. I've tried this both with the Original and Unified highlighter with the same results.

      The XML data file for my book has the following fields as shown below:

      <?xml version="1.0" encoding="UTF-8"?>
      <add>
      <doc>
      <field name="id">WALDEN-utf8.xml</field>
      <field name="title">WALDEN</field>
      <field name="catagory">Sam-tests</field>
      <field name="content">
      (118,704 words) ... too large to paste here!
      </field>
      <field name="keywords"></field>
      </doc>
      </add>

      • I've modified my schema via the API and indexed my file successfully.
      • I've also managed to turn on highlighting using the following command:

      curl http://localhost:8983/solr/mycore/config/params -H 'Content-type:application/json' -d "{"set":{"browse":

      {"hl":"on","hl.method":'original',"hl.snippets":'1000',"hl.fl":'*'}

      }}"

      Again Velocity will return the correct number of highlighted terms, in the correct number of snippets if i reduce the hl.snippets field to anything less than or equal to 13.

      and it clearly says:
      "hl.snippets 1 Specifies maximum number of highlighted snippets to generate per field. It is possible for any number of snippets from zero to this value to be generated."

      I'm not sure why this is happening, is my approach to the whole project wrong? I have read that Solr can successfully index many books. The Admin UI logs doesn't show any problems either, also I've been looking on the net but still no luck as to as why this is happening. Please help and apologies if my method or place of escalation is not correct (newbie ).
      Please let me know if you require further information as well.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zahareth Sam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: