2

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.

Example:

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

I like to share.

Current Result:

Search Keywords: share

Search Results: 4 items found

http://abc-sharepoint/unrealted_listsordocument/...

http://abc-sharepoint/News.aspx

http://differentSite/share.aspx

http://abc-sharepoint/text.txt

Expected Result:

Search Results:1 item found

http://abc-sharepoint/text.txt

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?

0

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.

5
  • Thanks. But wouldn't it filter the contents / files that actually contains the {SearchBoxQuery} values as well? I'm gonna test it further. – Steven Jul 26 '19 at 8:44
  • Sorry, meant "Site:". – Jussi Palo Jul 26 '19 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. – Steven Jul 26 '19 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 Jul 29 '19 at 8:00
  • It works, I'm sorry that I have confuse you at first. Many Thanks. – Steven Jul 29 '19 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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