The search results view currently show the default snippet/excerpts of 100 characters. The custom range can be beweteen 20-1000 characters.
By adding "fragment_size" to the highlight parameters (part of the 'content' subparameter ), which are generated by "private function generateSearchHighlighting" in lib/Service/SearchMappingService.php, an excerpt of custom length could be requested. This is helpful when the user has to search through many documents and needs orientation which documents are more relevant to open and inspect further.
The search results view currently show the default snippet/excerpts of 100 characters. The custom range can be beweteen 20-1000 characters.
By adding "fragment_size" to the highlight parameters (part of the 'content' subparameter ), which are generated by "private function generateSearchHighlighting" in lib/Service/SearchMappingService.php, an excerpt of custom length could be requested. This is helpful when the user has to search through many documents and needs orientation which documents are more relevant to open and inspect further.
https://www.elastic.co/guide/en/elasticsearch/reference/7.9/highlighting.html