Check out the whole SharePoint 2013 Solution Series
New Titles Added Weekly!
In SharePoint 2013 Search there are several out-of-the-box query rules to display ranked result blocks of various result types (.e.g Word, Excel, PowerPoint, etc.). These are triggered based on specific action terms that appear either in the beginning or end of a search query (or both). However, Videos is not one of them.
Therefore, it would be nice if someone performed a search query using "video" or "videos" that a promoted result block of video results would appear at the top of the results. Easier done than said!
Navigate to your Site Settings from within your Search Center site collection and click on Search Query Rules under Site Collection Administration:
Select Local SharePoint Results (System) as the Result Source:
Click on the New Query Rule link:
Add the Rule Name, select Query Contains Action Term, enter "video;videos" in the Action term is one of these phrases:
Click on Add Result Block.
Modify the Block Title. Change Search this Source to Local Video Results (System) and increase the amount of Items as desired (I used 6). Expand the Settings section.
Select the "More" link since there is already a Video Results page and enter the value shown in the image below. Select Video Item as the Display Template:
Click OK and then click Save on the New Query Rule page.
Navigate to your Search Center main page and perform a search using "videos" in the query:
The video result block appears at the top and displays the video results. The results show hover panels when moused over.
There is another way to display these results using an out-of-the-box horizontal video display template. If you go back into your Search Query Rules, edit the Video query, and then edit the Result Block, you may change the Display Template setting to just the Video entry:
Now the results are displayed horizontally along the top:
This presents well but there is no hover! You can easily modify the template (or make a new copy as the recommended approach) to display the hover. I will have those steps in another post soon!
UPDATE 5/14/2013: Here is the post that explains how to add the hover.