After a big migration of a very old Xwiki v11 database to a new Xwiki v16, users noticed that search results are much less compact. Is “page preview” section resizable in Xwiki v16 to be more compact ? (different default rendering options, probably)
To illustrate my question, here is the same search in Xwiki v11 vs Xwiki v16, with preview sizes compared :
The difference you pointed out is the highlight feature. I’m not sure since when we have it, but it can be disabled by the user by clicking Surligner on the French UI. The localization is a bit off, I’d probably have translated it as “Surlignage” (highlight in english, which is a noun in this context and should probably be translated with a noun too).
To remove this by default, I advise you to update the page Main.SolrSearchConfig that should be on your wiki. With the wiki editor you can find the highlight option in the content of the velocity macro on this page and switch it from true to false.
To completely disable it, you’ll probably need some further customization.
Can you share an example with values where we can compare the highlights to understand the difference? Since it’s consistently longer it should be easy to set a page up with dummy data and share how this page shows in a search both in XWiki-11.X and XWiki 16.X .
If it’s just a matter of layout and style, there’s likely no customization possible and you’ll need to update the stylesheet on Main.SolrSearch.
That’s frustrating : a brand new test page (full of “lorem ipsum”) gives roughly the same single line appearance in test results between our former v11 Xwiki environment and our current v16 one. For other existing pages (that I can’t copy-paste here, for confidentiality reasons), in the search results, it’s always one line in Xwiki v11 and sometimes more than 1 line in Xwiki v16. If in can forcefully constrain the height of the text preview through a CSS small patch, that would be a satisfying workaround, I guess.