简体   繁体   English

如何生成SharePoint搜索统计信息?

[英]How do SharePoint search statistics get generated?

We have a heavily customised SharePoint publishing (WCM) site that uses no web parts in order to meet with XHTML and (AA) accessibilty guidelines. 我们有一个高度定制的SharePoint发布(WCM)网站,该网站不使用任何Web部件来满足XHTML和(AA)可访问性准则。 The trouble is that the search functionality is not generating any usage statistics (Usage reports within Search Administration in the SSP). 问题在于搜索功能无法生成任何使用情况统计信息(SSP中“搜索管理”中的使用情况报告)。 We know this is down to our customisations because we have a couple of the OOTB team sites in the farm which are generating search statistics. 我们知道这取决于我们的定制,因为我们场中有几个OOTB团队站点正在生成搜索统计信息。 We are not sure where/how we need to fix this. 我们不确定在何处/如何解决此问题。 It seems we may need to wire up a call to the search.asmx web service but I'm not sure. 似乎我们可能需要打通对search.asmx Web服务的呼叫,但我不确定。 Perhaps we need to call something from within the SharePoint API as part of our call to the search service? 也许我们需要在SharePoint API中调用某些内容作为对搜索服务的调用的一部分? I'm not sure. 我不确定。

Has anyone out there built a heavily customised SharePoint site (no web parts) and are logging search statistics, can you comment on how you did it? 有没有人在那里建立了高度定制的SharePoint网站(没有Web部件)并且正在记录搜索统计信息,您能否评论一下它的工作方式? Or can anyoone provide insight into how the staistics are generated? 还是任何人都可以洞悉统计信息的产生方式?

If it helps we are running a medium sized farm with 2 WFEs, 1 Index server and 1 SQL Server box. 如果有帮助,我们将运行一个具有2个WFE,1个索引服务器和1个SQL Server框的中型服务器场。 All Windows 2003 R2 SP2, 32-Bit. 所有Windows 2003 R2 SP2(32位)。 MOSS 2007 SP1 (plus December CU) Enterprise Edition. MOSS 2007 SP1(加上CU)于企业版。

Thanks, James. 谢谢,詹姆斯。

您是否在CA->“操作”选项卡中检查了“使用情况报告”?

Our (intranet) site is heavily customized and the Search Usage Reports are turned on (they should be by default). 我们的(Intranet)站点经过高度定制,并且“搜索使用情况报告”已打开(默认情况下应为默认状态)。 You do have to enable ALL usage reporting options though, both in the SSP as in CA, the key one being "Enable search query logging.", in the SSP -> Usage reporting. 但是,您确实必须在SSP中和CA中一样启用所有使用情况报告选项,关键之一是在SSP->使用情况报告中“启用搜索查询日志记录”。 I have also found that disabling / reenabling this option will sometimes help if it is already supposed to be running. 我还发现,禁用/重新启用此选项有时会有所帮助,如果它已经在运行的话。

PS I will vote to move this question to serverfault as that is where this question belongs. PS我将投票将该问题移至serverfault,因为这是该问题所属的地方。

The SharePoint search statistics is only gathered when you use the standard search webparts (SearchBoxEx, CoreResultsWebPart). 仅当您使用标准搜索Web部件(SearchBoxEx,CoreResultsWebPart)时,才收集SharePoint搜索统计信息。 This is because they use an internal hidden object to perform the searches, which, in turn, logs to the statistics. 这是因为他们使用内部隐藏对象来执行搜索,然后将其记录到统计信息中。 AFAIK there is no way (except possibly reflection) to write to these logs when using a custom search webpart. AFAIK使用自定义搜索Web部件时,无法(除非可能是反射)写入这些日志。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM