You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Gunter Wiedemer (JIRA)" <ji...@apache.org> on 2014/12/11 17:11:13 UTC
[jira] [Updated] (SOLR-6836) highlighting doesn't formatting the
snippet if there are more than 5 characters before the matching string
[ https://issues.apache.org/jira/browse/SOLR-6836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gunter Wiedemer updated SOLR-6836:
----------------------------------
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"
]
},
was:
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"
]
},
> 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
> Labels: highlight
>
> 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"
> ]
> },
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org