简体   繁体   English

“布局”页面上的SharePoint 2010自定义搜索

[英]SharePoint 2010 custom search from Layouts page

I am querying SharePoint 2010 search using FullTextSqlQuery. 我正在使用FullTextSqlQuery查询SharePoint 2010搜索。 The query returns results as long as i run it from the webpart. 只要我从Webpart运行它,查询就返回结果。 However, for some reason, i need to run the same query from a custom aspx page deployed under layouts. 但是,由于某些原因,我需要从布局下部署的自定义aspx页面运行相同的查询。 The query returns a wcf exception. 查询返回wcf异常。

Has anyone tried running custom queries from pages deployed to layouts folder under 14 hive? 有没有人尝试从部署到14配置单元下的layouts文件夹的页面运行自定义查询?

Thanks, Faiz 谢谢,法兹

I was able to find the reason. 我找到了原因。 In the custom webpart, the RowLimit propery of Query was being set to 25. However, in the layouts page, the limit was set to 2000. I noticed that SharePoint 2010 custom search by default takes for the RowLimit property, a maximum value of 500. 在自定义Web部件中,Query的RowLimit属性设置为25。但是,在布局页面中,该限制设置为2000。我注意到,SharePoint 2010自定义搜索默认情况下使用RowLimit属性,最大值为500 。

Cheers. 干杯。

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

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