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

highlighting doesn't formatting the snippet if there are more than 5 characters before the matching string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.10.2
    • None
    • highlighter
    • windows 7; tomcat 7

    Description

      the highlighter doesn't formatting the snippet if there are more than 5 characters before the matched part:

      Search for "ting":

      Highlighting section in the search result:

      "8000":

      { "NAME": [ "<b>Floating</b>-rate preferred" ] }

      ,
      "8300":

      { "NAME": [ "Inverse <b>floating</b> rate note" ] }

      ,
      "8406":

      { "NAME": [ "Liquidating dividend" ] }

      ,
      "8739":

      { "NAME": [ "<b>Operating</b> profit margin" ] }

      ,
      "8802":

      { "NAME": [ "Participating fees" ] }

      ,

      "floating" and "Operating" has a proper formatting, "Liquidating" and "Participating" not. At "floating" there are only 4 characters ("floa") before "ting" and the formatting is ok. In "Liquidating" the prefix before "ting" has 7 characters ("Liquida") the formatting is not ok. If I change the search string to "idat" I get a formatting for "Liquidating" too:

      "8406":

      { "NAME": [ "<b>Liquidating</b> dividend" ] }

      ,

      Attachments

        Activity

          People

            Unassigned Unassigned
            gwiedemer Gunter Wiedemer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: