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 {SearchTems} ?
Gr. P
Hi Peki72 , check something like this -> {searchTerms} Path:"https://<yourtenant>.sharepoint.com/sites/<yoursite>/Lists/<yourlist>" contentclass: STS_ListItem, it should return list items.
- michalkornetIron Contributor
Hi Peki72 , check something like this -> {searchTerms} Path:"https://<yourtenant>.sharepoint.com/sites/<yoursite>/Lists/<yourlist>" contentclass: STS_ListItem, it should return list items.
- HaidariHammadBrass Contributor
You may find the following articles helpful:
https://sharepoint.stackexchange.com/questions/295338/pnp-modern-search-search-only-a-listConfiguring PnP Modern Search v4 to Display Search Results Based on Partial Keywords