I’ve got an issue with search result since it shows the Objects, content and exact. Actually the user don’t to see that keywork in the result of search content.
Could any one help me to solve this issue?
So your users don’t want to know what field was matched? I’m surprised, but if that’s the case then you can only hide “Objects” with CSS (.search-result-highlights > dt). “content” and “extract” are actually part of the indexed text, so you can’t do much about it, other than telling the search to not match objects at all.
Unlike a forum post, an XWiki page can have metadata that is also matched when you perform a search. The search results page shows you which page fields were matched. We cannot show only the page title and content, because the match could be in the metadata (your users will ask “why is this page in the results?”). And we cannot simply show the metadata as if it were the page content because it misleads the users (they will say “I can’t find this in the page content, where is this taken from?”).
I’m pretty sure it’s not always but rather only for XWiki pages that have an object (metadata) with these properties (content and extract) whose values are matching the search query. Maybe you don’t want the search to match the page metadata.
It’s already the case, but it’s not full rendering because rendering transformations (e.g. macros) are not executed (it would be dangerous, and in any case the output of a rendering macro can depend on the current user, while the search index is shared by all users).
That’s what the “Page Content” search suggest source does. You can achieve the same with the main search page by fiddling with Main.SolrSearchConfig (e.g. modify the queryFields parameter).