Forum Discussion
Jaswanthi
Oct 27, 2022Copper Contributor
How to filter the list items by using Search box webpart
I created a webpart page,and i added search box webpart and also i added list,Based on the search box whatever typing it will filter the list Items.
ganeshsanap
Oct 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.
Jaswanthi
Oct 31, 2022Copper Contributor
Where i have to give that path?
- JaswanthiOct 31, 2022Copper ContributorI tried in that way,but i didnt get the results
- 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.