4

Sometimes I face scenarios inside my SharePoint server 2013 that I cannot understand. Recently I realize the following inside my SharePoint web applications search scope.

Now I have three site collections as follow:-

And I rely on the default search managed service created inside my central administration.

Now I noticed this scenario.

  • Let say I am inside the home page for my http://servername/ site collection, and inside the built-in search box, I typed the word “procedures” then I will get results from the three site collections. But if I went to let say to http://servername/wiki site collection and I type the same word “procedures” then I will only get results from the current site collection http://servername/wiki. So not sure what is causing these scenarios, although this is something I found useful but I am trying to understand how SharePoint implements this internally. So does SharePoint search treat http://servername site collection a parent site collection and the other 2 site collections as its child, so if I am searching from http://servername I will get results from its child http://servername/wiki & http//servername/dept ? thanks
  • 3
    It basically adds a path:yourSiteUrl to the query, hence the experienced behavior – Robert Lindgren Sep 28 '16 at 13:58
  • @RobertLindgren can you please provide more details what do you exactly mean ? – john Gu Sep 28 '16 at 13:59
  • @RobertLindgren can you adivce more on your comment please? – john Gu Sep 29 '16 at 11:35
  • 1
    I really do not have the time to explain it further I'm afraid – Robert Lindgren Sep 29 '16 at 13:06
  • 1
    Not really sure what your question is. You've mentioned what you have observed and yes that is what happens. Can you add details about what you are trying to solve? – Rothrock Oct 3 '16 at 18:35
0

SharePoint search is using KQL (Keyword Query Language) where query like: author:"john doe" will return items authored by 'John Doe'. By default SharePoint is using site relative results by adding behind the scenes path:siteUrl to return items from the particular site.

You can read more about KQL on the MS site: https://msdn.microsoft.com/en-us/library/office/ee558911.aspx

  • so are you saying that path such as "servername" will cover site collection which have its url as "servername/dept" ??? – john Gu Oct 4 '16 at 15:45
  • Not sure about that, it may be that path limits to the particular site collection you might need to do something like: path:servername OR path:servername/dept. – Marek Sarad Oct 5 '16 at 7:40

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.