Forum Discussion
Peki72
Jan 19, 2025Copper Contributor
How to display a SPList in a PnP - SearchResult ?
Hi, I would like to try if it is possible to display just the content of a sharepoint list in a PnP- SearchResult. Is that possible? I guess i have to put something in the field after keyword {Searc...
- Jan 19, 2025
Hi Peki72 , check something like this -> {searchTerms} Path:"https://<yourtenant>.sharepoint.com/sites/<yoursite>/Lists/<yourlist>" contentclass: STS_ListItem, it should return list items.
HaidariHammad
Jan 19, 2025Brass Contributor
You may find the following articles helpful:
https://sharepoint.stackexchange.com/questions/295338/pnp-modern-search-search-only-a-list
Configuring PnP Modern Search v4 to Display Search Results Based on Partial Keywords