Q: Avoid SharePoint 2016 search to match URL
题
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
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?
解决方案
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.