SPointBlog SPointBlog
RowLimit in FAST KeywordQuery
12/16/2011 12:00:00 AM
SharePoint 2010;FAST Search

Sometimes when you are using a KeywordQuery object to perform a search and your Search Service Application is FAST Search Server for SharePoint you can see this message instead of your result:
“The search request was unable to execute on FAST Search Server.”
In my case I tried to set KeywordQuery.RowLimit property to get more results and my query had been looking like this: or ((lastname:”jonh*”),(firstname:”jonh*”))
I this case it failed to execute the query. But when I use “starts-with” instead of * symbol everything works perfectly. So I just rewrote my query to be like this:
or ((lastname:starts-with(“jonh”)),(firstname: starts-with(“jonh”)))
And it works perfect.
If you still have an error when you try to execute a query try to set your RowLimit to 100 or 200. I found out that in some cases if there are too many results for the query FAST will stop the execution with error. Try to set minimal row limit and check again.
I hope it will help somebody.

 

 Leave a comment

 
Name:
Comment:
RelatedPostID:

  
There are no items to show in this view of the "Comments" list. To add a new item, click "New".