Writing Custom Search Queries Using the Query Object Model

You can use the query object model to write custom web parts that consume data from search. At the heart of the query object model are the following two classes.

FullTextSqlQuery—Enables you to execute SQL syntax search queries

KeywordQuery—Enables you to execute Keyword syntax search queries

Get Sams Teach Yourself SharePoint® 2010 Development in 24 Hours 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.