Context and Highlighting
Configuring Size of Search Context and Title
- In SearchBlox it is possible to configure the size of context and title in the search results.
- Go to
<SEARCHBLOX_INSTALLATION_PATH>\webapps\searchblox\WEB-INF\relevance.yml
and give the size for description context and title as shown: - It is possible to increase or decrease the value as per one's requirement. Please make sure to restart after making changes to relevance.yml file.
- The value for the Snippet has to be between 20 and 1000.
titleSnippet: 100
contextSnippet: 200
Highlighting in Search Results
- SearchBlox offers hit highlighting, which highlights specific search results.
- To enable, go to Search > Settings in the Admin Console, and select Yes for Hit Highlighting:
![R14_1_hit_highlight_yes.png 543](https://files.readme.io/5bed562-R14_1_hit_highlight_yes.png)
- In search results the search term will be highlighted as in the screenshot:
![highlight.png 955](https://files.readme.io/a0f6fbe-highlight.png)
- To disable highlighting select No, as in the screenshot:
![R14_3_hithighlight_no.png 291](https://files.readme.io/d968639-R14_3_hithighlight_no.png)
- In search results the search term will not be highlighted as in the screenshot:
![nohighlight.png 958](https://files.readme.io/eb2a051-nohighlight.png)
Updated almost 4 years ago
What’s Next