Query Members

Include Protected Members
Include Inherited Members

Provides the base class for executing search queries using the Search query object model. This class defines properties and methods that are shared by the FullTextSqlQuery and KeywordQuery classes.

The Query type exposes the following members.

Constructors

  Name Description
Public method Query(SPSite) Initializes a new instance of the Query class, based on the specified site.
Public method Query(String) Initializes a new instance of the Query class, based on the specified application name.

Top

Properties

  Name Description
Public property Application Obsolete. Gets the application name for the query request.
Public property AuthenticationType Gets or sets the authentication type for the query.
Public property Culture Gets or sets the locale for the query.
Public property EnableNicknames Gets or sets a Boolean value that specifies whether the exact terms in the search query are used to find matches, or if nicknames are used as well.
Public property EnablePhonetic Gets or sets a Boolean value that specifies whether the phonetic forms of the query terms are used to find matches.
Public property EnableStemming Gets or sets a Boolean value that specifies whether stemming is enabled.
Public property Hint Gets or sets the suggested query processor behavior for the query.
Public property HitHighlightedProperties Gets the list of hit-highlighted properties.
Public property IgnoreAllNoiseQuery Gets or sets a Boolean value that specifies whether the search query should execute if the query text contains only noise words.
Public property KeywordInclusion Gets or sets a value that specifies whether the query returns results that contain all or any of the specified search terms.
Public property QueryText Gets or sets the text for the search query.
Public property RankingModelId Gets or sets the ranking model identifier (ID).
Public property ResultTypes Gets or sets a value that specifies the search result type.
Public property RowLimit Gets or sets the maximum number of rows to be retrieved in the search results.
Public property RowsPerPage Gets or sets the number of search results to return per page.
Public property Site Gets the site the search query is executed from.
Public property SiteContext Gets or sets the site URL for the search query.
Public property StartRow Gets or sets the first row of information from the search results.
Public property SummaryLength Gets or sets the length of the search result summary.
Public property Timeout Gets or sets the amount of time, in milliseconds, before the query request times out.
Public property TotalRowsExactMinimum Gets or sets the value used to determine the minimum value required for rendering page links.
Public property TrimDuplicates Gets or sets a Boolean value that specifies whether duplicate items should be removed from the search results.
Public property UrlZone Gets the originating URL zone for the query request.

Top

Methods

  Name Description
Public method Dispose Releases the resources for the search query.
Public method Equals (Inherited from Object.)
Public method Execute Executes the search query.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See Also

Reference

Query Class

Microsoft.SharePoint.Search.Query Namespace