开发者

Solr/Lucene highlighted keywords - paddings

开发者 https://www.devze.com 2023-02-26 05:59 出处:网络
I would like a specific padding (EG \'...\')--> only on start/end of fragments that are truncated, I would also like to concatenate 2 fragments, even if they are not close, like:
  1. I would like a specific padding (EG '...') --> only on start/end of fragments that are truncated,

  2. I would also like to concatenate 2 fragments, even if they are not close, like:

... fragment1 ... fragment2 ...

Are there any fragmenters / hi开发者_运维技巧ghlight settings that can be used?


i hope i understood your question correctly.

check out the HighlightingParameters

you have a lot of options there.

you can also specify your own hl.simple.pre/hl.simple.post. then you can parse the output every way you like.

it is also quite common to give a span tag with a custom css class, that you can style.

0

精彩评论

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