How to populate search results content, with search term/text highlighted in it?
We have a scenario, when a user searches with a term and AEM pulls in the pages that that term lives on, the term itself would appear in the page of search results with highlighted design.
For example, if I search for “randomtext”, these are the results that I get. Entry points into “randomtext” is on both pages but the term itself isn’t surfaced with OOTB query results, which leaves the user wondering which page actually contains the information they are looking for.
Would it be possible to allow search results to pull something from the page that contains the keyword that was searched?
What other options might be possible to accomplish the goal of having the keyword surfaced on the search results page?
Any idea on this? TIA.