本文介绍了错误:Remove-SPEnterpriseSearchComponent:序列不包含任何元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试删除损坏的爬网组件-我已删除数据库,但无法删除实际组件:

I am trying to remove a corrupt crawl component - I have deleted the database but cannot remove the actual component:

#使用以下方法删除了已损坏的爬网存储:

#Deleted the crawl store that is corrupted using:

$ ssa = Get-SPEnterpriseSearchServiceApplication-标识搜索服务应用程序"
$ cs = $ ssa.CrawlStores

$ssa = Get-SPEnterpriseSearchServiceApplication -Identity "Search service Application"
$cs = $ssa.CrawlStores

#list爬网存储以查找已损坏或旧的爬网

#list the crawl stores to find the corrupted or old one

$ cs

#删除损坏的商店

$ cs1 = $ cs.Item(数据库的GUID")
$ cs1.Delete()

$cs1 = $cs.Item("GUID of database")
$cs1.Delete()

->现在没有爬网存储,无法添加新的爬网存储-该命令刚刚挂起

--> Now have no crawl store and was unable to add a new one - the command just hung

使用以下方法删除抓取组件:

Remove crawl component using:

$ ssa = Get-SPEnterpriseSearchServiceApplication
#获取拓扑ID:490ac644-18f4-46ff-bb84-5ed63ce27736
#获取抓取组件ID:46cac641-c8f7-4c54-b189-44febb97b61e

$ssa = Get-SPEnterpriseSearchServiceApplication
# get the Topology ID: 490ac644-18f4-46ff-bb84-5ed63ce27736
# get the crawl component ID: 46cac641-c8f7-4c54-b189-44febb97b61e

#Clone Active Search拓扑
$ ssa = Get-SPEnterpriseSearchServiceApplication
$ activeTopology = Get-SPEnterpriseSearchTopology -SearchApplication $ ssa -Active
$ clone =新SPEnterpriseSearchTopology -SearchApplication $ ssa -Clone -SearchTopology $ activeTopology

#Clone Active Search Topology
$ssa = Get-SPEnterpriseSearchServiceApplication
$activeTopology = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active
$clone = New-SPEnterpriseSearchTopology -SearchApplication $ssa -Clone -SearchTopology $activeTopology

#删除爬网组件
Remove-SPEnterpriseSearchComponent -SearchTopology $ clone -Identity"46cac641-c8f7-4c54-b189-44febb97b61e"

#Remove crawl component
Remove-SPEnterpriseSearchComponent -SearchTopology $clone -Identity "46cac641-c8f7-4c54-b189-44febb97b61e"

错误:
Remove-SPEnterpriseSearchComponent:序列不包含任何元素

ERROR:
Remove-SPEnterpriseSearchComponent : Sequence contains no elements

如果有人可以提供帮助,那就太好了-否则,我将不得不删除SSA,然后重新开始

If anyone can help that would be great - otherwise I am going to have to delete the SSA and start again

欢呼

Jonj

推荐答案

如何运行以下脚本?




这篇关于错误:Remove-SPEnterpriseSearchComponent:序列不包含任何元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 07:39