Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

i am using the Sharepoint api to return search results which i am getting with Microsoft.SharePoint.Search.Query.KeywordQuery. On my development machine this is working fine. On the Server where Server Express 2010 is installed additionaly, this is not working. I am getting no results although Foundation Search seems to be configured ok.

Is there a way to debug this scenario? I can not find any problems in the Application Event Log or in the Sharepoint Event log. But i am not sure if Foundation Search is even crawling my content.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Installing Search Server Express effectively replaces Foundation Search and in fact, enhances it. Check that you have a Service Application created for search and that the service is running. Microsoft TechNet has good information on the subject of configuring Search Server Express: http://technet.microsoft.com/en-us/library/ee808897.aspx

share|improve this answer
    
Thanks for your help. I get search results on my site from Search Server Express, so this is working. But my application does not create results. I don't know if Search Server is incompatible with the KeywordQuery method or if there is another problem. What is working for sure is Foundation Search in combination with KeywordQuery on my dev machine. So the ideal solution would be to get foundation search running for my site. –  spoekes Feb 10 '12 at 16:46
    
I think you may have luck if you switch to Microsoft.Office.Server.Search.Query.KeywordQuery. However, in the long run, you'll need your environments to match. I suggest installing Search Server Express on dev if you can because it adds a whole lot to Foundation and is licensed similarly. In other words, in most cases it shouldn't be an additional cost over Foundation. –  Tom Resing Feb 10 '12 at 19:42
1  
Its is working now with Search Server Express 2010. Except for the assembly reference and the namespace the code stayed the same. –  spoekes Mar 7 '12 at 9:54
    
Thanks for the feedback! It's always great to see solutions tested and confirmed on this great Q&A site. –  Tom Resing Mar 7 '12 at 17:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.