Hello,
I have a site that has a search box web part and multiple search results web parts. Each search results web part has a query to show results from the required lists across our SharePoint tenant and our search box web part is connected to all the search results web parts by selecting them in the settings under ‘send queries to other web parts on this page’.
My question is, when I search for a specific reference using the search box web part it will then highlight the words in the other web parts but ideally I would like the other web parts to filter out anything that is not the searched on reference. So I we searched for ‘despatch label’ it would only show any documents with ‘despatch label’ in the name instead of keeping all the documents visible and highlighting the phrase despatch label.
{{apimage “Untitled.png” “Example”}}
If you are hoping to search specific fields, you have two methods of doing so. We you can specify managedproperties that you want to search against for example. Filename:”despatch label”.Â
Or you can change your search result webpart to always search for the file name by modifying the query of the result web part. filename:{searchBoxQuery}
Check the below link to add refiners to filter out the results.Â
Hi James,
In your scenario explained, if you have connected your search box webpart to all the results webpart it should display only documents that contain your search text. But do note that it will not only look for the title but also the content of the document library.Â
If you want to ignore the documents when it contains the search text as content, you need to filter your results by configuring the search results webpart.
Thank you. How do I add a filter to show only my search results across the results web parts as I cannot see any options for this in the Search Box settings?