{"id":1190,"date":"2021-08-03T09:05:50","date_gmt":"2021-08-03T14:05:50","guid":{"rendered":"https:\/\/zewwy.ca\/?p=1190"},"modified":"2021-08-03T13:35:48","modified_gmt":"2021-08-03T18:35:48","slug":"fixing-sharepoint-search","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2021\/08\/03\/fixing-sharepoint-search\/","title":{"rendered":"Fixing SharePoint Search"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Broken_SharePoint_Crawl\"><\/span>Broken SharePoint Crawl<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Issue_SharePoint_Search\"><\/span>Issue: SharePoint Search<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"First_Issue_Crawl_ends_in_1_min_20_seconds\"><\/span>First Issue: Crawl ends in 1 min 20 seconds.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Solution: Check to see if the Page Loads when queried from the front end server. If you get a credential prompt 3 times.\u00a0 Then you have to disable loop back checking.<\/p>\n<p>How to:<\/p>\n<p>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa<\/p>\n<p>Add a new DWORD value named DisableLoopbackCheck and give it a value of 1. After setting the value reboot your server.<\/p>\n<pre>reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa \/v DisableLoopbackCheck \/t REG_DWORD \/d 1<\/pre>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Second_Issue_Crawl_appears_to_complete_but_Errors_in_Log\"><\/span>Second Issue: Crawl appears to complete but Errors in Log<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Log Details of &#8220;the content processing pipeline failed to process the item ExpandSegments&#8221;<\/p>\n<p>You may find lots of sources stating to watch out for multi valued attributes or property names such as this <a href=\"https:\/\/www.c-sharpcorner.com\/article\/sharepoint-search-application-return-the-content-processing-pipeline-failed-to\/\">nicely detailed blog post<\/a> however, watch for the details in the log message and it&#8217;s a bit different. However I feel <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/en-US\/a49b2257-f79f-4e5a-a514-d00527a3e241\/the-content-processing-pipeline-failed-to-process-the-item?forum=SP2016\">this TechNet was answered incorrectly<\/a>.<\/p>\n<p>I tried some of the basics, <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/en-US\/2bda8682-16c9-4864-8afd-562a3a82b840\/error-message-the-content-processing-pipeline-failed-to-process-the-item?forum=sharepointadmin\">such as clearing the index and adding the search account as site admin<\/a>, did not help. On that note I learnt that separate search content sources within a search application do not have their own indexes. You have to create dedicated search applications for each SharePoint site if you wish them to have their own index (&#8220;Database\/Tables&#8221;).<\/p>\n<p>After a bit more scouring I found many instances of the same problem with the solution always being you have to create a new search application, such as <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/en-US\/8883506a-d986-4d4a-be4b-93bf7f369eb6\/sharepoint-2013-full-crawl-error-the-content-processing-pipeline-failed-to-process-the-item?forum=sharepointgeneral\">this TechNet post<\/a> and this <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/en-US\/e42f3acc-75d6-4aac-96af-01de5f6ea479\/the-content-processing-pipeline-failed-to-process-the-item?forum=sharepointsearch\">TechNet Post.<\/a><\/p>\n<p>Solution:<\/p>\n<p>Remove the content source from the existing Search Service Application.<\/p>\n<p>Create an entirely new Search Service Application.<\/p>\n<p>Reboot the Front End.<\/p>\n<p>Add Crawl Content on new SSA. Crawl should work.<\/p>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Third_Issue_Red_X_on_Search_Service_Application_Services\"><\/span>Third Issue: Red X on Search Service Application Services<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>*NOTE* After creating the new Search Application, <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/office\/en-US\/6ff58493-1b33-4c14-8ecc-58d6087321ce\/search-topology-procesing-red-circle-and-x?forum=sharepointsearch\">a front end reboot is required to remove the red X&#8217;s on some of the application services statuses<\/a>.<\/p>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Fourth_Issue_Search_results_not_working\"><\/span>Fourth Issue: Search results not working<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>This from my testing appeared to have resolved the crawl issue at hand. However I wasn&#8217;t able to get results returned when entering data in to search. I did a bit of searching and testing and <a href=\"https:\/\/sharepoint.stackexchange.com\/questions\/274207\/crawls-successful-but-cannot-get-any-search-results-sharepoint-2016\">I found the solution<\/a>. Turns out you have to associate the web application with the new search service application (In my testing I created a new uniquely defined search application to have a separate index then the other SharePoint Sites).<\/p>\n<p>Solution:<\/p>\n<p>Navigate to Central Admin &gt; Application Management &gt; Manage web applications &gt;Highlight the web application &gt; Select Service Connections from top ribbon &gt; Make sure your Search service application is selected.<\/p>\n<p>This was it for me, however if you still experience issues I have also read updating the front end servers can resolve issues as well, <a href=\"https:\/\/blog.stefan-gossner.com\/2019\/12\/10\/december-2019-cu-for-sharepoint-server-2016-is-available-for-download\/\">as blogged about by Stefan Go\u00dfner<\/a>.<\/p>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Fifth_Issue_Runaway_Crawl\"><\/span>Fifth Issue: Runaway Crawl<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>For some unknown reason, when I went to check out the SharePoint front end after the weekend, I noticed it was using near 100% CPU usage, very similar to a Front End that is actively doing a crawl, I knew this wasn&#8217;t a normal time for a crawl and it generally never happens during this time.<\/p>\n<p>To my amazement 3 crawls were on going for over 70+ hours. Attempting to stop them from the front end option &#8220;Stop all crawl&#8221; resulted in them being stuck in a stopping state.<\/p>\n<p><a href=\"https:\/\/social.technet.microsoft.com\/Forums\/office\/en-US\/18598299-38ed-4396-800e-cc55fde20b53\/search-crawls-stuck-at-quotstoppingquot-i-even-restarted-all-servers-still-no-result-please?forum=sharepointadminprevious\">Googling this I found stop and starting<\/a> the SharePoint Search Service under services.msc did help to bring them back to &#8220;idle&#8221;.<\/p>\n<p>Now I believe this next step is what caused my next issue, but it is uncertain.<\/p>\n<p>I clicked on Remove Index, for the primary search service application. It was stuck at &#8220;This shouldn&#8217;t take long&#8221; for a really long time, and I believe it was my impatience here that caused the next problem, as I restarted the search service again after this fact.<\/p>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Sixth_Issue_Paused_by_System\"><\/span>Sixth Issue: Paused by System<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>All <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/en-US\/ded35627-b2ff-40d8-a469-8447d0756545\/content-source-status-changed-to-paused-by-system?forum=sharepointsearch\">solutions I found for this<\/a> issue resulted in no success. Even rebooting the server the primary search service content crawl states were &#8220;paused by system. Regardless of:<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Pausing and Resuming the Search Services<\/li>\n<li>Restarting the Search Services<\/li>\n<li>Rebooting the server<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>I was only able to resolve this issue the same way I fixed the initial issue with the crawl, rebuild the search service application.<\/p>\n<p>I hope this blogs helps anyone experiencing issues with SharePoint Search functionality. Cheers!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Broken SharePoint Crawl Issue: SharePoint Search First Issue: Crawl ends in 1 min 20 seconds. Solution: Check to see if the Page Loads when queried from the front end server. If you get a credential prompt 3 times.\u00a0 Then you have to disable loop back checking. How to: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa Add a new DWORD value named &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2021\/08\/03\/fixing-sharepoint-search\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing SharePoint Search&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[8,9],"tags":[360,361,140],"class_list":["post-1190","post","type-post","status-publish","format-standard","hentry","category-server-administration","category-sharepoint","tag-crawl","tag-search","tag-sharepoint"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1190"}],"version-history":[{"count":6,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1190\/revisions"}],"predecessor-version":[{"id":1197,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1190\/revisions\/1197"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}