Forum Discussion
Edmundomma
Aug 05, 2025Copper Contributor
Highlight query text with in Search Result
Hi everyone,
I'm working with SharePoint Online (Modern experience) and I'm trying to find a way to highlight the matching query text within the search results — similar to how classic search used to bold the matching terms.
Is there a way to achieve this using PnP (PnP Modern Search web parts or other approach)?
Any tips or examples would be greatly appreciated.
Thanks in advance!
1 Reply
Hi Edmundomma
you can configure the Hit-highlighted properties in PnP Modern Search. https://microsoft-search.github.io/pnp-modern-search/usage/search-results/data-sources/
Is this what you've been looking for?
Best, Dave