Is there any way to not match users' keywords to pages' URL?

If users try to search using domain name, the whole site will be returned in result.


(Content of http://abc-sharepoint/text.txt)

I like to share.

Current Result:

Search Keywords: share

Search Results: 4 items found





Expected Result:

Search Results:1 item found


Is there anyway to configure the crawler or search web part such that SharePoint won't match users' keyword to any URLs but instead, match the pages' title / content?

1 Answer 1


Haven't tested this, but theoretically it could work: -Site:{SearchBoxQuery} or -Path:{SearchBoxQuery} to filter out whole URL and not just the site part.

  • Thanks. But wouldn't it filter the contents / files that actually contains the {SearchBoxQuery} values as well? I'm gonna test it further. Commented Jul 26, 2019 at 8:44
  • Sorry, meant "Site:".
    – Jussi Palo
    Commented Jul 26, 2019 at 8:47
  • Your suggestion partially achieved the result. "-Site:{SearchBoxQuery}" filter out any result under that site. However, what I wanted to achieve is to not use any link of the URLs for keyword matching. Your suggestion do point me to the right direction. I'm trying to mess around with Manage Result Sources now. Many Thanks. Commented Jul 26, 2019 at 9:35
  • In that case, the -Path is correct, it will filter out it if the URL of the file contains the SearchBoxQuery, but will not filter out if the file contains that string.
    – Jussi Palo
    Commented Jul 29, 2019 at 8:00
  • It works, I'm sorry that I have confuse you at first. Many Thanks. Commented Jul 29, 2019 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.