开发者

Solr highlight somes html characters

I have a problem with solr highlight component. In fact, when i search the word "eau", solr highlight component returns me :

<em>l&#</em>8217;Eau

But "eau" should be highlighted. I use the开发者_如何学运维 standart configuration of solr 3.3.

Thanks.


I had a similar issue and as a workaround, I changed the characters that were being wrapped around the highlight, using the hl.simple.pre and hl.simple.post highlighting options to set the new values. I used a | (pipe character). Once I did this, the highlighting started working properly. So I then only had to add some additional processing to the results to replace the pipe back to the <em> tag.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜