Update ( Feb 13 )
The OP wants to perform a free-text search on filenames across four libraries and the approach is:
- In the Search Query Configuration, set:
Path:"LibraryA" OR Path:"LibraryB" OR Path:"LibraryC" OR Path:"LibraryD"and check the box “Use default search query”. - In the Search Query Keywords, leave a single trailing space
- In the Query Template, use:
{searchTerms} isdocument:1 FileName:{searchboxquery}
Thank you for reaching out to the Q&A forum and I really appreciate the details you’ve provided so far.
Please understand that I don’t have the same environment or architecture setup as yours, so you might consider asking this on the Tech Community for additional insights. However, I will still try my best to help you. To better understand what’s happening, could you please clarify a few points?
- Is NBS Search a third‑party application integrated into your SharePoint Server environment, and is it built on top of the standard KQL (Keyword Query Language)? I tried looking for official documentation but couldn’t find anything authoritative, so your input would help me understand the setup more accurately.
- When testing, are you using a Path filter that points directly to the document library? For example:
{searchTerms} Path:"https://…/LibraryName/*"This should behave differently compared to using{SiteCollection}, which still causes the search to crawl the entire site. - For refiners, have they been mapped to a Refinable managed property, and has the library been reindexed after mapping? If not, refiners may not load correctly or may appear empty.
- Lastly, does the version of NBS Search you’re using support custom refiners and custom managed properties? Some versions handle these differently. Fields intended for refiners usually need to be mapped to properties such as RefinableStringXX. For reference, Microsoft’s documentation on managing the Search Schema in SharePoint Server may also be helpful: Manage the search schema in SharePoint Server
I hope this information helps.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.