如何在SharePoint 2013中移动Index文件的位置

本来就想只列一下参考链接就可以了, 但是经笔者亲自测试, 错误还是有点多, 笔者还是把经过测试的写在这里吧.

方便大家参考.

 

#Author: ZhongDaoXueYou
#Copyright: Help you, help me. 

#Get Serivce Application and Service Instance, to prepare parameters for below.
$ssa = Get-SPEnterpriseSearchServiceApplication
$IndexHost = Get-SPEnterpriseSearchServiceInstance -Identity "APP2-SPS2013"

#Get active topology. You might have more than one topologies, filter might be a good idea.
$currentActiveTopo = Get-SPEnterpriseSearchTopology -SearchApplication $ssa | Where-Object {$_.State -eq "Active"}

#Clone the topology.
$clone = New-SPEnterpriseSearchTopology -Clone -SearchApplication $ssa -SearchTopology $currentActiveTopo 

#Create a new index component to replace the old one.
New-SPEnterpriseSearchIndexComponent -SearchTopology $clone -IndexPartition 0 -SearchServiceInstance $IndexHost -RootDirectory C:\Index\IndexFolder

#Activate the new search topology
Set-SPEnterpriseSearchTopology -Identity $clone

#Verify that the new search topology is act
Get-SPEnterpriseSearchTopology -SearchApplication $ssa

#Verify that all components of the new search topology are running correctly
Get-SPEnterpriseSearchStatus -SearchApplication $ssa -Text
 

补充一点吧. 这里的脚本的目的是让存放Index文件的目录不放在C盘. 比如说你在你的后端存储上开辟了很多块盘组成的一个LUN, 希望将index存在这块速度快得多的空间上.

那么这里改的是Index Partition的存放位置, 那么Crawler本身也需要使用磁盘的, 确切的说是高达3MB以上的写IO. 那么里的存储如何优化呢?

答案就是, 运行这Crawler的机器上的SharePoint的安装位置需要进行配置. 如果你已经装好的SharePoint 2013, 你得在这台虚机上卸掉应用程序, 重装.

在File Location对话框的Search Index File location的部分填写路径即可.

 

参考资料

=====================

Move the search index location in SharePoint 2013

http://www.experts-exchange.com/blogs/ACH1LLES/B_7052-Move-the-search-index-location-in-SharePoint-2013.html

posted on   中道学友  阅读(620)  评论(0编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律

导航

< 2013年3月 >
24 25 26 27 28 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31 1 2 3 4 5 6

技术追求准确,态度积极向上

点击右上角即可分享
微信分享提示