sharepoint 2010 client objects search
-
24-06-2021 - |
Question
I'm just getting into Client Objects, writing Caml querys to retrieve lists and items and presenting the output in an asp.net MVC environment and all works fine. The idea is to use MVC as a presentation layer and Sharepoint as a repository, for various business reasons (like harnessing workflow, business process and all the good things about sharepoint)
The issue that I'm not sure about is offering up 'search'. Is there a way of using client objects to run a Sharepoint Search, and retrieve the resuilts (as a list of items for example?)
Any help or experience greatly appreciated.
Solution
The SharePoint 2010 Client Object Model doesn't include APIs for Search. As an alternative, you could use the Search Web Service. Here are a few resources:
Windows SharePoint Services Query Web Service
Creating Search Queries Programmatically by Using the Search Web Service in SharePoint Server 2007