简体   繁体   English

SharePoint 2010搜索-搜索请求无法连接到搜索服务

[英]SharePoint 2010 Search - The search request was unable to connect to the Search Service

I am using SharePoint 2010 Foundation and I have a prolem with the search on there. 我正在使用SharePoint 2010 Foundation,但在那里的搜索存在问题。 Everytime I search for something I get the response of The search request was unable to connect to the Search Service. 每次搜索内容时,都会收到的响应。 搜索请求无法连接到搜索服务。

I have spent alot of time looking at this and I cannot seem to see what is causing the issue. 我花了很多时间研究此问题,但似乎看不出是什么原因引起的。 The SharePoint Foundation Search service is started but there are no services listed on the server for search other than the 'Help Search'. SharePoint Foundation搜索服务已启动,但服务器上没有列出用于“帮助搜索”以外的搜索服务。

Also, if I look into my content databases under the 'Manage Database Upgrade Status' it telling me that the database is too old... 另外,如果我在“管理数据库升级状态”下查看内容数据库,则会告诉我该数据库太旧了...

Could anyone point me in the right direction as to how to resolve these issues as it is sending me mad!! 任何人都可以向我指出有关如何解决这些问题的正确方向,因为这使我发疯了!

Many Thanks in advance... Luke 提前非常感谢...卢克

Execute this command in SharePoint 2010 Management Shell (run as administrator) 在SharePoint 2010命令行管理程序中执行此命令(以管理员身份运行)

psconfig -cmd upgrade

It will initiate standard SharePoint Products update and upgrade all databases which are in either "version mismatchm, upgrade is recommended" or "old, upgrade is required" status. 它将启动标准SharePoint产品更新并升级处于“版本不匹配,建议升级”或“旧,需要升级”状态的所有数据库。 The tool runs in command line and gives your updates about installation progress, like this. 该工具在命令行中运行,并为您提供有关安装进度的更新,如下所示。

PS C:\Users\Administrator> psconfig -cmd upgrade

SharePoint Products Configuration Wizard version 14.0.6009.1000. Copyright (C) M
icrosoft Corporation 2010. All rights reserved.

Performing configuration task 1 of 4

Initializing SharePoint Products upgrade...
Waiting to get a lock to upgrade the farm.
Successfully initialized SharePoint Products upgrade.

Performing configuration task 2 of 4

Initiating the upgrade sequence...
Successfully initiated the upgrade sequence.

Performing configuration task 3 of 4

Upgrading SharePoint Products...
Successfully upgraded SharePoint Products.

Performing configuration task 4 of 4

Finalizing the SharePoint Products configuration...
Successfully completed the SharePoint Products configuration.
Total number of configuration settings run: 4
Total number of successful configuration settings: 4
Total number of unsuccessful configuration settings: 0
Successfully stopped the configuration of SharePoint Products.
Configuration of the SharePoint Products has succeeded.

PS C:\Users\Administrator>

This is my experience: For every time a fresh new install SharePoint 2010, the search service is good and working. 这是我的经验:对于每一次全新安装的SharePoint 2010,搜索服务都很好并且可以正常工作。 When the 2008 server runs the auto update and found some update patches for SharePoint and get loaded automatically, then the SharePoint search will failed afterward with the message "The search request was unable to connect to the Search Service". 当2008服务器运行自动更新并找到SharePoint的一些更新补丁并自动加载时,SharePoint搜索将随后失败,并显示消息“搜索请求无法连接到搜索服务”。
It looks like the auto loaded SharePoint patches will so something inference the search service but not do the work in a clean way. 自动加载的SharePoint修补程序似乎可以使某些内容推断出搜索服务,但不能以一种干净的方式进行工作。

I have used the "psconfig -cmd upgrade" command first but search is not work at first. 我首先使用了“ psconfig -cmd upgrade”命令,但是首先搜索不起作用。 Then, I go to Central Administration -> System Settings -> Manage services on server, stop the "SharePoint Foundation Search" service, this will remove all search index. 然后,我转到管理中心->系统设置->管理服务器上的服务,停止“ SharePoint Foundation搜索”服务,这将删除所有搜索索引。 Start it up again. 重新启动。 Afterward, the search works again. 之后,搜索再次起作用。

After some further research into this I found it was a simple case of needing to upgrade some of my databases (the search database being one of them). 经过对此的进一步研究,我发现这是一个简单的案例,需要升级一些数据库(搜索数据库就是其中之一)。

To view the databases that needed upgrading I used the Powershell Commands: 要查看需要升级的数据库,我使用了Powershell命令:

Get-SPDatabase | Get-SPDatabase | ?{$_.NeedsUpgrade -eq $true} | ?{$ _。NeedsUpgrade -eq $ true} | Select Name 选择名字

AND

Get-SPContentDatabase | Get-SPContentDatabase | ?{$_.NeedsUpgrade -eq $true} | ?{$ _。NeedsUpgrade -eq $ true} | Upgrade-SPContentDatabase 升级SPContentDatabase

This allowed me to identify all databases that needed this (pretty much the same as using the Health Analyzer in Central Admin). 这使我能够识别所有需要此数据库的数据库(与在Central Admin中使用Health Analyzer几乎相同)。 I then ran the following PSCONFIG command through the powershell command windows to perform the upgrade: 然后,我通过powershell命令窗口运行以下PSCONFIG命令以执行升级:

psconfig -cmd upgrade -inplace -b2b -force -wait psconfig -cmd升级-inplace -b2b -force -wait

Finally I ran the Products and Technologies wizard and all worked fine (including the search). 最后,我运行了“产品和技术”向导,并且一切正常(包括搜索)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM