Tag Archive: Search Service Application


Recently I have the issue with Search Service Servicece Application on SharePoint 2013 onprimise. This issue make all Search Query webpart and any search feature on farm come to Unexpected error. From the Correlation ID,  ULS logs show the error message “Index lookup failed to work since no active index cell was available

After several hours investigated, the problem is recognized from Index Partition and SharePoint Search Host Controller service

Reason: The problem come from Search Service Application.
System have error with Index Partition components, so all content query from web pages and SharePoint sites can not render correctly to show.
To check this component, you can follow SharePoint Powershell script to check for Index Component State
PS > $ssa = Get-SPEnterpriseSearchServiceApplication
PS > Get-SPEnterpriseSearchStatus -SearchApplication $ssa -Text
screen0.png
Resolution: We tried to Reconfigure Indexing component from SharePoint Search Service Application and clean up error indexing content by following steps
Step 1: Check if Search Service Application Crawling and Indexing are Running or Paused.
You can run this command in the SSA management console to verify if the Search Service Application is paused.
$ssa.IsPaused() -ne 0
If ourput of this command returns False, the SSA is running. If this command returns True, the SSA is paused and you have to turn it to running. This article will tell you more about Paused reasons https://technet.microsoft.com/en-us/library/dn745901(v=office.15).aspx
Common error cases message: ‘Search Service Application’ is paused for with reason(s) other than Index Repartitioning.
If you don’t care about Paused reason, you can run below command try to force the SSA to resume:
$ssa.ForceResume($ssa.IsPaused())

If you still not get Resume SSA successful, just skip this step and go to Step 2

Step 2: Run Services.msc with Administrator permission and try to stop following services:
SharePoint Timer Service
SharePoint Search Host Controller
Step 3:  Delete all content of data directory from locationC:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\Applications\Search\Nodes\[Hex ID\IndexComponentN\storage\data\* (noted that: If you installed SharePoint folder in other drive, just change C drive your your installed foder)

Then restart services “SharePoint Timer Service” and “SharePoint Search Host Controller”

Step 4: Reset Search Indexing content

  1. On the SharePoint Central Administration home page, in the Application Management section, click Manage service applications.
  2. On the Manage Search Applications page, click the Search service application for which you want to reset the search index.
  3. On the Search Administration page, under System Status, verify that the Administrative status of the Search service application is Running and not Paused.
  4. On the Search Administration page, in the Crawling section, click Index Reset.
  5. On the Index Reset page, verify that the Deactivate search alerts during reset check box is checked, and then click Reset Now.
  6. In the confirmation dialog box that appears, click OK to confirm that you want to reset the index.

Step 5: Start Full Crawl again.

Since we reset indexing conten, you need re-run full craw to make Search Service App crawl all configured content to make search data available

After finished steps, Search Topology should be works fine with green check as below

screen01.png

 

Root cause: The problem may come from Windows Update on Jan 2016, so SharePoint server was automatically run Windows update and installed for many packages from Microsoft. It may impacted to SharePoint Search Service and Index partition was interrupted.
screen1.png

This article wil introduce how to setup SharePoint enterprise search in SharePoint 2013 and how to manage crawled properties which will be indexed and queryable.

1. Create Search Service Application Proxy

Login Central Administration with Farm Administrator permission, click on Manage Service Applications under Application Management section. Click on New ribbon in top left corner and select Search Service Application from menu

01.NewSSA

In Create New Search Service Application dialog, input appropriated settings as below. In this sample, I would like reuse existed SharePoint Service Application, you can also create new application pool for this Search Service

02.NewSSA_Input

Click OK to finish and wait for processing, the result should be like this

03.SSA_Review

 

2. Configure Content Sources

Back to Central Admin page -> Application Management -> Manage service applications. In the service application list, you can see Search Service Application which just created above. Click on it to open manage page

At Search Service Application page click Content Source in left menu and edit Local SharePoint sites content source

04.EditContentSource

You can verify in address box, there are will list all site address which will be lookup for crawling. If there are missing address, you can add more by typing in a new line. Notice that sps3 protocal is using to index for User Profile property which are managed by User Profile Service Application, and the port is My Site’s port

05.Crawlingdata

3. Set Crawl scheduler

At Manage Content Source page, select Edit in current content source. Then click on Create Schedule under Crawl Schedules.

07.CreateSchedule

 

Manage Schedules dialog will display and allow you to setting

08.CreateSchedule_Setting

 

4. Manage Crawled properties

In SharePoint 2013, Search service application’s navigation has some changes, and Metadata Property in left menu was changed to Search Schema.

09.SearchSchema

By click on this menu item, system will show you Managed Properties, here is the place you can manage what data will be crawled and queryable in search scopes.

10.ManageProperties

To add new property, click New Managed Property, and fill Property NameType of informatoin of property, make sure checked on Searchable and Queryable, select other options with your expectation.

11.NewProperty

At Mappings to crawled properties section, you need to define what data information will map to this property, it can be a list columns, a user profile property,…. Click Add a Mapping to find your data. A selection popup will show as below

12.NewProperty_AddMapping

Click Add and then OK to finish adding new property.

Finally, Start Full Craw by come back to Content Sources management page, select Content Source’s menu and click Start Full Crawl

For others option configuration in search service application, you can find more at Technet Microsoft site

 

Hoang Nhut Nguyen

Email: nhutcmos@gmail.com

Skype: hoangnhut.nguyen
%d bloggers like this: