如何在Visual Studio和文本文件(例如* .cs和* .txt)中设置SharePoint搜索文本的方式 [英] How to setup SharePoint Search for text within Visual Studio and Text files (like *.cs and *.txt)
问题描述
大家好,
如何设置SharePoint Online搜索,以便可以在Text和CS Visual Studio文件(例如Notes.txt或Program.cs)中搜索文本?所有文件都位于我们的OneDrive for Business位置中.我知道如何设定
SharePoint搜索以使用结果源"集中于OneDrive位置和查询规则",但不会返回* .txt或* .cs文件的结果.
例如,我想返回所有包含文本"SPFarm farmObject = SPFarm.Local"的文件.我知道有超过八个* .cs文件包含此文本,但没有返回任何内容.我还想添加文本和CS文件
键入结果类型"菜单.
How do I setup SharePoint Online search so I can search for text within Text and cs Visual Studio files (like Notes.txt or Program.cs)? All the files are located within our OneDrive for Business locations. I know how to setup
SharePoint search to focus on the OneDrive location using "Result Sources" and "Query Rules", but it doesn't return results for *.txt or *.cs files.
For example, I would like to return all files that include the text "SPFarm farmObject = SPFarm.Local". I know there are over eight *.cs files that include this text but nothing is returning. I would also like to add the Text and CS files
types to the Result Type menu.
希望您能提供帮助
科林
I hope you can help
Colin
推荐答案
您好,科林,
默认情况下,SharePoint Online不支持对.cs文件进行爬网,但支持对.txt文件进行爬网.
By default, SharePoint online does not support to crawl .cs files but it support to crawl .txt files.
https://technet.microsoft.com/en -us/library/jj219530.aspx
因此,SharePoint无法识别.cs文件,也不会对文件内容进行解析和索引.当您搜索.cs文件中的内容时,将不会获得任何结果.
对于.txt文件,请再次重新检查该问题,以查看所有.txt文件是否都出现了该问题.
您可以为.txt文件创建结果类型.
https://support.office.com/zh-CN/article/Manage-result-types-ceccf561-e82c-495c-bf3e-b3f006ae9c8c
最好的问候
这篇关于如何在Visual Studio和文本文件(例如* .cs和* .txt)中设置SharePoint搜索文本的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!