Forum Discussion
How to filter the list items by using Search box webpart
Jaswanthi Can you try using PnP Search Box web part with Search Results web part?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- ganeshsanapOct 31, 2022MVP
Jaswanthi You have to write search query using Path to retrieve/filter items from specific list only, like:
path:https://contoso.sharepoint.com/sites/sitename/Lists/yourlist contentclass:sts_listitem
Check:
- Can Search Result Web Part be used to show items from a specific list?
- Search Results - Data sources
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- JaswanthiOct 31, 2022Copper ContributorWhere i have to give that path?
- ganeshsanapOct 31, 2022MVP
Jaswanthi You have to select "SharePoint Search" as a data source and pass the search query in Query text section.
Read the documentation given in 2nd link in my above response.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.