如何在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
分类:
SPS 2013
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律