Custom Search Tabs

Hi Experts,

Few more interesting point to share with you guys about custom search:

1) Configure custom tabs: You can add custom tab to search page just like OOB Tabs "All Sites" and "People". Please follow given steps:


  • Point to Site Actions, and then click View All Site Content.


  • Click the Tabs in Search Pages list and click New and then Add New Item to add a new item that represents your new tab.


  • Provide a name and associate it with the custom search page that you created earlier.


  • Click the Tabs in Search Results list and and click New and then Add New Item to add a new item that represents your new tab.


  • Provide a name and associate it with the custom search page that you created earlier.


Or

Edit the search page and add new tabs. see the screen shot below:


After creating new tab we have to associate custom scope to new search core results webpart:


  • Click the Search tab to go to the Search Center.


  • Go to the search result page.


  • Point to Site Actions, and then click Edit Page.

  • Find the search core result webpart and click on edit webpart.

  • Find the "Scope" option under the 'Location Properties' section.

  • Type your custom search scope name in scope section.


Here is the screen shot of the property.



2) Defining list item and list level custom scopes:

While configuring search we need to configure custom scops. In my last post, i define the scope settings for configuring People Search Scope. Now for creating custom search scope which limits your search with in various list or list items, we have to define STS_List_GenericList and STS_ListItem_GenericList(for custom list type). For reference please have a look to below available options:
"STS_Web": // Site

"STS_List_850": // Page Library

"STS_ListItem_850": // Page

"STS_List_DocumentLibrary": // Document Library

"STS_ListItem_DocumentLibrary": // Document Library Items

"STS_List_GenericList": // Custom List

"STS_ListItem_GenericList": // Custom List Item

"STS_List_Links": // Links List

"STS_ListItem_Links": // Links List Item

"STS_List_Tasks": // Tasks List

"STS_ListItem_Tasks": // Tasks List Item

"STS_List_Events": // Events List

"STS_ListItem_Events": // Events List Item

"STS_List_Announcements": // Announcements List

"STS_ListItem_Announcements": // Announcements List Item

"STS_List_Contacts": // Contacts List

"STS_ListItem_Contacts": // Contacts List Item

"STS_List_DiscussionBoard": // Discussion List

"STS_ListItem_DiscussionBoard": // Discussion List Item

"STS_List_IssueTracking": // Issue Tracking List

"STS_ListItem_IssueTracking": // Issue Tracking List Item

"STS_List_GanttTasks": // Project Tasks List

"STS_ListItem_GanttTasks": // Project Tasks List Item

"STS_List_Survey": // Survey List

"STS_ListItem_Survey": // Survey List Item

"STS_List_PictureLibrary": // Picture Library

"STS_ListItem_PictureLibrary": // Picture Library Item

"STS_List_WebPageLibrary": // Web Page Library

"STS_ListItem_WebPageLibrary": // Web Page Library Item

"STS_List_XMLForm": // Form Library

"STS_ListItem_XMLForm": // Form Library Item


Please feel free to ask any doubt about configuring search.

Thanks for your time

happy sharepointing :)

Comments

Popular posts from this blog

Hide Ribbon on SharePoint 2013 using CSS

Get Comment Count in SharePoint

Configure external site as content sources in sharepoint search