开发者

Solr/Lucene highlighted keywords - paddings

  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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜