Search Sharepoint with keyword Query

To build custom search applications on top of SharePoint you should use the new  Microsoft.Office.Server.Search.Query
object model.

You can use either FullTextSQLQuery or KeywordQuery

FulltextSQLQuerycomplex SQL queries


KeywordQuery class allows a (1) keyword or a (2) SharePoint property filter
to be passed directing to the search service without needing to construct a SQL query.

The ResultTypes
property should be set to ResultType.RelevantResults
to retrieve the results.

Call Execute to start searching.

Another one:


Can use CONTAINS, FREETEXT, FORMSOF (go went gone).

Enterprise Search queries however always query from SCOPE().

Very similar to KeywordQuery

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: