SharePoint 2013: Query Search with the Managed Client Object Model

This code sample provides details on how to query Search with the new SharePoint 2013 Client Object Model.

C# (63.7 KB)
 
 
 
 
 
4.9 Star
(10)
3,094 times
Add to favorites
4/19/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • scope
    1 Posts | Last post June 22, 2015
    • hi corey,
      
      how to create a scope(getting search results from a particular content source) for the search results.
      If we dont provide scope will it return search results from all the content sources
      Thanks
  • Cannot find proxy for type with id "{80173281-fffd-47b6-9a49-312e06ff8428}".
    4 Posts | Last post April 16, 2015
    • Hi Corey, 
      
      I am trying to use same code in my Sharepoint 2010 environment by installing sharepoint client component for Sharepoint 2013 but getting below exception at 
      clientContext.ExecuteQuery();
      Cannot find proxy for type with id "{80173281-fffd-47b6-9a49-312e06ff8428}".
      
      Do you have any idea o, why I am getting such execption.
      
      Thanks,
      Nikhil Tiwari
    • Hi Nikhil.  Unfortunately, I haven't tried this code from a SharePoint 2010 environment.  For that environment, I would probably go with using REST instead.
      
      http://code.msdn.microsoft.com/SharePoint-2013-Querying-623fd85a
    • Hi Nikhil, 
      
      Did you find the cause and resolution to your issue? I am having the exact same exception using the 2010 client object model assemblies.
      
      Thanks
      
      Raj
      
    • Unfortunately you can't use the client assemblies fro 2013 in the 2010 environment.