Isolating search results to each web application

Hi,

I have a near out of the box SharePoint 2013 install with multiple web applications. These may have several site collections and each their own sites underneath.

What's are the best practices to:

  1. Crawl and Index the content of each web application, site collection and/or site? Should I have separate service crawling accounts as well or is that not necessary
  2. Narrow the search query of each web application, site collection and/or site? The business rules are still being defined, but I'd like to understand how a search of Site A under Web Application A cannot return results from Site B under Web Application A or Site C under Web Application B?

Thanks


  • Edited by GJCanon Friday, January 17, 2014 12:32 AM
January 17th, 2014 3:30am

for the first question answer it's not necessary for the second question you can use PATH managed property to filter the search query , in the search result page add to the search result webpart the following text

PATH:http://server:port1/*

this will return the results only under the web application http://server:port1/

 
Free Windows Admin Tool Kit Click here and download it now
January 17th, 2014 1:55pm

What prevents one application from deliberately using the wrong PATH value (e.g. to try and see crawled content of another application)?
January 18th, 2014 1:12am

you will edit the search result webpart yourself so it's the admin responsibility  to add the correct parameter to the query of the search result page to be

{searchboxquery} PATH:http://server:port/* 

where http://server:port is the path to the current webapp

another method is to create new result source and add the path filtration to the result source (query transform) 

and when edit the search result select the correct result source which is reflect the correct web application

Free Windows Admin Tool Kit Click here and download it now
January 18th, 2014 4:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics