Closed dmyers closed 5 years ago
Agreed. Would love to see this.
Since the result is pushed back from elastic search server, this is a workaround if you really want to highlight the text in the results. A simple php function:
This is no case sensitive and will highlight any maching Uppercase/Lowercase/mixed $searchtext in the provided $text.
See an exemple here http://www.icilekongossa.com/search?type=all&q=Cameroun
Assuming that you use a separate css to style the searchtext class like this:
span.searchtext { background-color: #ffff00; }
It would be nice to be able to show highlighted matches in an interface for users.