问题标签 [sharepoint-search]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
search - 用于索引 Windows SMB 文件共享的搜索解决方案
我正在确定可以抓取 Windows SMB 文件共享并通过 API(带有安全修整)公开搜索结果的搜索解决方案。到目前为止,SharePoint 和 Elastic Search 似乎可以处理这个问题。但是还有其他可能的解决方案吗?
sharepoint - Sharepoint 2013 Serach Rest API URL 限制
我正在使用 sharepoint search rest API 来获取产品。在这里,如果查询 url 的长度小于 1800 个字符,我会遇到奇怪的问题,我会从 api 获得响应(已验证只是将 url 粘贴到浏览器中),但如果长度超过 1800,我会在这里找不到网页我假设 sharepoint search api 无法管理大于 1800 的 url 长度。这是 sharepoint search API 的限制吗?
我的查询是这样的 https://www.example.com/_api/search/query?querytext='ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId :1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId :1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId :1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId: 1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId: 1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId:1 OR ItemId :1'&SourceId='8e4r54e0-0a21-4525-9311-9b6dcdc7f626'&SelectProperties='ItemId,Path,图片'&QueryTemplatePropertiesUrl='spfile://webroot/queryparametertemplate.xml'
sharepoint - SharePoint 搜索错误“数据库中存在异常”
一周前为 SharePoint Search 2013 创建了新的内容源,返回的内容没有问题。在接下来的星期一,搜索停止工作并显示错误消息“数据库中出现异常”。
在 ULS 日志中,我收到一条错误消息“System.Data.SqlClient.SqlException (xxxxxxxxx): 找不到存储过程 'proc_MSS_GetUrlMapping'”
“SqlError:'找不到存储过程'proc_MSS_GetUrlMapping'。' 来源:'.Net SqlClient 数据提供者'编号:2812 状态:62 类:16 过程:''行号:1 服务器:'xxxxxxxxxx\xxxxxxxxx'"
“Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries 范围内发生异常。异常=System.ServiceModel.FaultException`1 [System.ServiceModel.ExceptionDetail]:数据库中出现异常。请重试您的操作,如果问题仍然存在,请联系管理员。”
我曾尝试重置索引并进行全面爬网等,但没有任何乐趣。有人可以帮忙吗?
谢谢
乔什
sharepoint - 使用 KeywordQuery 在搜索结果中返回错误的 DateTime
我有一个大问题。我在服务器端代码中使用 KeywordQuery 从具有相同 contenttypeid 的多个列表中返回项目。我在这些列表中有一些日期时间列。当我从关键字wquery 搜索返回值时,我得到
但我将 3/3/2017 保存为列表项中的日期!这里有什么问题?为什么我总是从搜索数据库中收到日期 - 1 小时,我如何在我的服务器端代码中更正这个?
这是我的代码:
sharepoint-online - sharepoint online 列出未出现在搜索结果中的项目
我们通过将 excel 数据导出到 sharepoint 自定义列表在 sharepoint 在线站点中创建了一个自定义列表,之后列表项不会显示在搜索结果中
我们甚至尝试重新索引自定义列表,但即使在此之后搜索结果也没有显示列表项
任何帮助,将不胜感激
sharepoint - 共享点搜索不递归获取项目
我有一个共享点文档库,其中包含多个文件夹,每个文件夹中都有文件和文件夹。我想在执行查询时只获取当前文件夹中的项目,因此不要获取它下的子文件夹中的项目。我创建搜索的方式如下:
查询部分:
我执行的 2 个示例查询:
根:
一个子文件夹:
主要问题是它返回所有子文件夹和项目,还包括自己的文件夹。有谁知道如何解决这个问题?
在此先感谢,非常感谢任何帮助。干杯!
sharepoint-2013 - SharePoint 2013 日期搜索在 ?k=LastModifiedTime>4/28/2016 和 ?#k=LastModifiedTime>4/28/2016 之间的行为不一致
我正在对奇怪的日期搜索行为进行一些调查,该网站具有新西兰日期格式的区域设置。从基本搜索页面搜索时,这是附加到搜索结果 URL 的查询字符串的解码版本 - ?k=DateCompleted=6/24/2004
。这将返回结果DateCompleted of 6/24/2004
。
但是,从搜索结果页面再次单击搜索将返回带有DateCompleted of 6/25/2004
. 6/25 似乎是 UTC 6/24 的 NZT 日期转换。URL 的查询字符串更新为 -k=DateCompleted=6/24/2004#k=DateCompleted=6/24/2004
区别在于额外的#k=DateCompleted=6/24/2004
。?k
关于为什么日期搜索和#k
日期搜索之间存在差异的任何想法?我的猜测是它与 Ajax 调用有关,但在 technet/msdn/google 搜索中找不到任何相关信息。
rest - 使用 SharePoint Online Search REST API 获取当前用户创建的文档
我需要获取当前使用 rest api 登录到 SharePoint Online 的用户的修改/创建文档。我能够获取所有创建的文档,但是,我缺少检索当前登录用户并将其添加到其余查询的逻辑。我的代码:
所以目前我无法弄清楚如何将当前用户名添加到此代码中。
sharepoint-online - SearchExecutor (JSOM) 未从 Sharepoint 在线用户配置文件中检索值
我正在尝试从 Sharepoint 托管应用程序在 SharePoint 在线用户配置文件中执行人员搜索,但它不返回任何数据。
我正在使用以下代码来执行此操作:
我正在尝试搜索包含“mohammed”文本的用户个人资料。
searchExecutor.executeQuery(keywordQuery)
执行时没有任何错误,但results.m_value
返回 0。如果我从中获得值,results.m_value
我可以转向使用 PeopleManager 读取 UserProfile 属性
注意:我的用户是Mohammed Arief Kannubasha
哪位大侠请指教,先谢谢了
sharepoint - SharePoint 2013 仅使用 始终建议
在 SharePoint 2013 中,当用户搜索关键字并单击链接 6 次或更多次时,系统会自动提出查询建议。此外,您可以通过导入以换行符分隔的文本文件来添加 Always Suggest Phrases。
有没有办法禁用和删除所有自动查询建议,只使用始终建议短语?
提前致谢!