In SharePoint 2013 Search Vertical are displayed in the Search Navigation Web Part on Search Center. SharePoint 2013 Provides us four Search Verticals OOTB namely Everything, People, Conversation, Videos. Each of these verticals mapped to a specific page to display the results returned by the queries and when Search Users click on any of these verticals they are navigating to the respective mapped pages with the vertical they clicked on.
For example: Search Vertical Everything uses Results.aspx page to display the results returned by the query. In the similar fashion People vertical uses PeopleResults.aspx, Conversation vertical uses ConversationResults.aspx, Video vertical uses VideoResults.aspx.
All these pages used by the different Search Verticals can be located under Page Library on Search Center Site
Each of these vertical pages uses following four Web Parts to render results returned by the user queries:
Hope by now you got a fairly good idea on “What are Search Verticals?”
In this article, we are going to create new Search Vertical for our Search Center that will be showing all the documents (Only Documents) Authored or Co-Authored by me.
Along similar lines, we can create our own Search Verticals.
We need to perform following steps to get a new Search Vertical Up and Running.
We will start our journey by creating the required Result Source for the new search vertical.
Go to Site Settings
Go to Search >> Result Sources
Create new Result Source by clicking New Result Source link
Enter Name and Description.
Choose Local SharePoint as Protocol
Click Launch Query Builder Button to launch Query Builder screen where we can specify the relevant query for the Result Source
Choose Property Filter as needed, based on the business scenario we have we will choose Property Filter as Author, Value as Name of the user who run the query, Property Filter as IsDocument and Value as 1.
Setting IsDocument Property Filter to 1 is a must if you want to display only documents as the part of the search results for this newly created vertical.
Choose Property Filter as needed, based on the business scenario we have we will choose Propere="font-size:16px;">Click Add property filter button to add the properties to the Query Text.
Once we are done with configuring the Query we need to test the Query by clicking Test Query Button
Search Result Preview Panel on the left will display all the results returned by the query we just configured.
Click OK
With this, we are done with the creation of Result Source for the new Search Vertical
Now we will create new Search Vertical Page to display results returned by the Result Source that we have just created.
Go to Site Contents
Go to Pages Library
Click New item or go to Files Tab >> New Document
Choose Page Template to create a new Search Page
Once the page is added, Edit the page
Locate Search Results Web Part and edit its properties
In Web Part Properties click on Change Query Button to launch a query builder
Choose My Documents Result Source from Select a query Dropdown box
Click Test Query to test the query translated by the Result Source selected under Select a query
Search Result Preview Panel on the left will display all the results returned by the query we just configured.
With this, we are done with creating a new Search Result Page.
It is time now to Configure Search Navigation to include new Search Vertical in the Search Center
Go to Site Settings
Go to Search >> Search Settings
Click Add Link under Configure Search Navigation
Enter Title as My Documents
Click Browse Button
Select MyDocuments.aspx Page from Page Library
Click OK
This will create a new Search Vertical on the Search Center with name My Documents.
Finally, we need to test this new Search Vertical.
Currently logged in as sp\spdeveloper
Go to Search Center
Enter Search Query which is *.pdf to return all the documents wicuments.
Everything Search Vertical will show all the PDF documents returned by the query
But My Document Search Vertical will show only those PDF documents which are Authored or Co-Authored
Creating new Search Verticals can be helpful in the scenarios where the business user needs to filter out the results returned by the queries under different names by limiting the results based on the Result Sources.
Hope this will help someone in need.