Configuring SharePoint 2013 Search (Part 1 of 3)


Guys, I am here with another very interesting post drilling down SharePoint 2013 search capabilities and available features.  The following things will be discussed

  • Part 1: Configuring SharePoint 2013 “Result sources”
  • Part 2: SharePoint 2013 search API and parsing search results using data table
  • Part 3: Configuring SharePoint 2013 search center & redirect search queries to search center

Configuring SharePoint 2013 “Result sources”

As you guys, might already be aware that SharePoint search scopes are no longer available in SharePoint 2013. Scopes are replaced with more powerful “Result Sources”

Aaaahhhhh! “Powerful” in terms of “what” & “how”. . .

So let us see how “result sources” are more powerful and gives you more control. First of all result sources are available at site collection level which has now enabled site collection administrators to have better control over search. To configure some basic search settings now you are not required to login in central admin.

Having said that, it does not mean that you have crawling and search service application settings on site collection level. No not at all. Crawling and search service application (SSA) settings still reside in central admin and it still requires careful planning to configure it properly.

To add a new “result source” go to your site collection settings under “SEARCH” section (on left hand side) you will see “Result Sources” – Click it. Set protocol you want to follow (normally its Local SharePoint – in most cases) – As per Microsoft’s documentation.

  • Select Local SharePoint for results from the index of this Search Service.
  • Select OpenSearch 1.0/1.1 for results from a search engine that uses that protocol.
  • Select Exchange for results from an exchange source.
  • Select Remote SharePoint for results from the index of a search service hosted in another farm

What brings power to a “result source” is ultimate, brand new & out of the box “query builder” tool which is embedded in SharePoint search settings. This query builder will allow site collection administrator to transform incoming query, add keyword, set filters and configure source. For example if I want this ‘result source’ to return items which belong to particular site collection (titled: ‘tempSitecollection1’) then you will configure your result source using query builder like this:

{searchTerms} (path:”http://sharepointportal/sites/ tempSitecollection1/*” OR path:” https://sharepointportal/sites/ tempSitecollection1/*”) (contentclass:STS_List OR contentclass:STS_List_DocumentLibrary)

So this result source will contain records only from tempSiteCollection1 – Using this URL, you can scope this ‘result source’ to only one document library. Wasn’t that easy & powerful ;-) Using query builder you can also apply sorting and grouping clauses.

Powerful enough ;-)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: