Home Sign In

Steven Van de Craen's Blog

Bloggings about SharePoint, .NET and more.

RSS Feed
  • Contact Me

Archives

  • July 2007 (19)
  • August 2007 (6)
  • September 2007 (3)
  • November 2007 (12)
  • October 2007 (4)
  • December 2007 (8)
  • January 2008 (6)
  • February 2008 (3)
  • March 2008 (2)

Categories

  • SharePoint 2003
  • SharePoint 2007
  • General
  • Office 2003
  • Office 2007
  • Excel Services
  • Dynamics NAV
  • SOAP
  • Search
  • Search Server 2008
  • .NET
  • CKS
  • IIS

Recent Posts

  • CKS:EBE 2.0 Final Release
  • TechDays 2008 wrap up
  • SharePoint Errors: 6482, 7888, 6398 and 7076
  • Feature Activation Dependency + Hidden = Automagic
  • FieldRefs node in new Content Type XML

Other Blogs

  • //BLOG: naked programmer
  • JOPX
  • Jan Tielens' Bloggings [MVP]
  • Serge van den Oever [Macaw]
  • Carlos Segura Sanz
  • -->Patrick Tisseghem's Blog [MVP SharePoint] -->
  • Remco Ploeg's Blog
  • SharePoint Blogs
  • Romeo Pruno
  • [email protected]
  • Andrew Connell [MVP MOSS]
  • Mark Harrison
  • Pedro Serrano
  • Clemens Vasters and the Indigettes
  • Kevin Boske
  • SharePoint Team Blog
  • Brian Jones: Office XML Formats
  • Mart Muller's Sharepoint Weblog
  • Joel Oleson's SharePoint Land
  • Kris' blog
  • STSADM Custom Extensions
  • Microsoft Enterprise Search Blog
  • Michaël's coding thoughts
  • Chris O'Brien's blog
  • John Holliday's SharePoint Reflections

Search: FullTextQuery RowLimit

When you query the SharePoint Search Service the number of rows returned defaults to 100 but can be increased as required.

Note that when you specify a value above the maximum RowLimit the query will only return the default value of 100 items !

ServerContext ctx = ServerContext.Default;
FullTextSqlQuery query = new FullTextSqlQuery(ctx);
query.QueryText = BuildQuery();
query.ResultTypes = ResultType.RelevantResults;
query.RowLimit = 1000;
ResultTable resultTable = query.Execute()[ResultType.RelevantResults];

After some trial and error I found the maximum value for the RowLimit to be 917728059.

query.RowLimit = 917728059;

 

So don't go around setting the RowLimit to int.MaxValue like I did because this only returns 100 items...

 
Categories: .NET, Search, SharePoint 2007

Trackback Url

 

Comments

Tuesday, 15 Jan 2008 04:32 by Paddy
Hi, I have a requirement.Hope you can help me out in this. I need to develope a scope in my Moss Search. This scope should include all the pages existing in a folder with specific name irrespactive of the parent folder. Like for instance i have to develope a scope called Services and this should include all the pages existing in that folder. I develeoped the scope called "Services" and created a "Property rule". I created a "Managed property" called "FolderName" and mapped it to a "Crawled Property" "ows_name(Text)" from sharepoint category which will in my opinion will contain the name of each and every folder. In my "Property Rule" i gave it as "FolderName" = "services". But htis is not returning me any results. Please help me out what can be done. Iam really in abig trouble. Any help is appreciated Regards

Friday, 18 Jan 2008 05:10 by Steven Van de Craen
Did you run a full or incremental crawl ? (might be best to try a full crawl)

Leave a comment

Name

Url

Email

Comments

CAPTCHA Image Validation

© 2007 Steven Van de Craen — Powered by Community Kit for SharePoint: Enhanced Blog Edition.