Gunter Wiedemer created SOLR-6836:
-------------------------------------

             Summary: highlighting doesn't formatting the snippet if there are 
more than 5 characters before the matching string 
                 Key: SOLR-6836
                 URL: https://issues.apache.org/jira/browse/SOLR-6836
             Project: Solr
          Issue Type: Bug
          Components: highlighter
    Affects Versions: 4.10.2
         Environment: windows 7; tomcat 7
            Reporter: Gunter Wiedemer


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" there 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"
      ]
    }, 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to