简体   繁体   中英

SharePoint 2010 custom search from Layouts page

I am querying SharePoint 2010 search using FullTextSqlQuery. The query returns results as long as i run it from the webpart. However, for some reason, i need to run the same query from a custom aspx page deployed under layouts. The query returns a wcf exception.

Has anyone tried running custom queries from pages deployed to layouts folder under 14 hive?

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.

Cheers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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