The Query Object Model

The new managed API to support the execution of an Enterprise Search query is encapsulated within the Microsoft.Office.Server.Search.dll and defined within the Microsoft.Office.Server.Search.Query namespace. The assemblies contain a completely new set of classes in Office SharePoint Server 2007. The earlier version of SharePoint—SharePoint Portal Server 2003—contained the QueryProvider class, which has become obsolete in the query object model. The class is still defined and available for compatibility reasons, but Microsoft deemphasizes the use of this class in your code.

Two classes are important here. Both inherit from the Query class, an abstract class that is not intended to be used directly in code. The Query class ...

Get Inside the Index and Search Engines: Microsoft® Office SharePoint® Server 2007 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.