Share via

Using NBS Search instead of pnp searcher

Charlie Martharper 385 Reputation points
2026-01-05T09:03:12.4166667+00:00

Hi!

So I am using a SP on premise and I am having trouble setting it up. I want to look files inside a library that is public, not all the content of the site.

What should I write in the first part?

User's image

The second is almost the same, should I change any of the Query template? In the path(siteCollection) should I put my site name?

User's image

The last part is the refiners, which some of them are already created, and when wanting to add some, it doesn't load:

User's image

How should I create it to get the files from the public library i want propperly with filters of that library?

Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Answer accepted by question author
  1. Gabriel-N 14,025 Reputation points Microsoft External Staff Moderator
    2026-01-05T12:31:49.57+00:00

    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}

    User's image


    Hi Charlie Martharper

    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.