Solr/Lucene highlighted keywords - paddings
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:
... 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.
精彩评论