Thanks for your reply Scott.
I tried
bs.language=de&bs.country=de
Unfortunately the problem still occurs.
I have just discovered that the problem does not only affect "ß" but
also "æ" (which is mapped to "ae"
at query and index time)
q=hae --> hæna
So it seems to me that the problem is related to any single character
that is map to several characters using class="solr.MappingCharFilterFactory"
mapping="mapping-ISOLatin1Accent.txt"/>
Jérôme
Le 13/10/2015 07:46, Scott Stults a écrit :
My guess is that the boundary scanner isn't configured right for your
highlighter. Try setting the bs.language and bs.country parameters either
in your request or in the requestHandler.
k/r,
Scott
On Mon, Oct 5, 2015 at 4:57 AM, Jérôme Bernardes
wrote:
Dear Solr Users,
I am facing a problem with highligting on ngram fields.
Highlighting is working well, except for words with german character
"ß".
Eg : with q=rosen&
"highlighting": {
"gcl3r:12723710:6643": {
"textng": [
"Rosensteinpark (Métro), Stuttgart (Allemagne)"
]
},
"gcl3r:2267495:780930": {
"textng": [
"Rosenstraße, 94554 Moos (Allemagne)"
]
}
}
Without "ß" words are highlight partially Rosensteinpark but
with "ß", the whole word is highlighted (Rosenstraße)
-
This characters ß is mapped to "ss" at query and index time (using
)
.
Here the schema.xml for the highlighted field.
Is it a problem in our configuration or a known bug ?
Regards
Jérôme