Archive for the ‘SharePoint 2010’ Category

SPField.Type is undefined for External List fields

Tuesday, January 31st, 2012 in Development, SharePoint 2010.
Tags: , ,

No Comments »

You can check the type of list column using SPField.Type and get a nice object of type SPFieldType.

But this method doesn’t work for External Lists.
(more…)

RowLimit in FAST KeywordQuery

Friday, December 16th, 2011 in SharePoint 2010.
Tags: , , , ,

No Comments »

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.

FAST Search Managed Properties

Wednesday, November 23rd, 2011 in SharePoint 2010.

1 Comment »

If you are using FAST Search for SharePoint you sometimes need to create a new managed property to be able to search in it.

I don’t want to write here how to do it –there are many great articles about this.

If you are looking for guide like that you can use these two really great posts:

 

I just want to put your attention to one little but very confusing thing:
(more…)