Query Members
Include Protected Members
Include Inherited Members
Represents the base class for executing search queries by using the SharePoint Enterprise Search query object model, and defines the properties and methods that are shared by the FullTextSqlQuery and KeywordQuery classes.
The Query type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Query(ServerContext) | Initializes a new instance of the Query class, based on the specified service application. | |
Query(SPSite) | Initializes a new instance of the Query class, based on the specified site. | |
Query(SearchServiceApplicationProxy) | Initializes a new instance of the Query class based on the specified Search service application. |
Top
Properties
Name | Description | |
---|---|---|
Application | Obsolete. Gets the application name for the query request. | |
AuthenticationType | Gets or sets the authentication type for the query. | |
Culture | Gets or sets the locale for the query. | |
DirectServiceEndpointUri | Gets or sets the address the Search service application proxy should use instead of the URL specified in the constructor for the Search service application proxy. | |
EnableNicknames | Applies to: Microsoft SharePoint Server 2010 search 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. |
|
EnablePhonetic | Gets or sets a Boolean value that specifies whether the phonetic forms of the query terms are used to find matches. | |
EnableStemming | Gets or sets a Boolean value that specifies whether stemming is enabled. | |
HighlightedSentenceCount | Applies to: Microsoft SharePoint Server 2010 search Gets or sets the number of sentences to include in the hit-highlighted summary. |
|
Hint | Gets or sets the suggested query processor behavior for the query. | |
HitHighlightedProperties | Gets the collection of hit-highlighted properties for the query. | |
IgnoreAllNoiseQuery | Applies to: Microsoft SharePoint Server 2010 search Gets or sets a Boolean value that specifies whether the search query should execute if the query text contains only noise words. |
|
KeywordInclusion | Gets or sets a value that specifies whether the query returns results that contain all or any of the specified search terms. | |
PagingCookie | Applies to: Microsoft SharePoint Server 2010 search Represents the client side cookie used for paging through the search results. |
|
PartitionId | Applies to: Microsoft SharePoint Server 2010 search Specifies the unique identifier (ID) of the index partition to use for this search query. |
|
PersonalizationData | Applies to: Microsoft SharePoint Server 2010 search Gets or sets the unique identifier (ID) for the current user who submitted the search query. |
|
QueryInfo | Get the query log data for a single clickthrough for a search query. | |
QueryText | Gets or sets the text for the search query. | |
RankingModelId | Applies to: Microsoft SharePoint Server 2010 search Gets or sets the identifier (ID) of the ranking model to use for the query. |
|
ResultsProvider | Gets or sets the search provider used for the search query | |
ResultTypes | Gets or sets a value that specifies the search result type. | |
RowLimit | Gets or sets the maximum number of rows returned in the search results. | |
RowsPerPage | Gets or sets the number of search results to return per page. | |
SearchApplication | Obsolete. Applies to: Microsoft SharePoint Server 2010 search Gets the Search service application instance for the search query. |
|
Site | Gets the site the search query is executed from. | |
SiteContext | Gets or sets the site URL for the search query. | |
StartRow | Gets or sets first row included in the search results. | |
SummaryLength | Applies to: Microsoft SharePoint Server 2010 search Gets or sets the length of the search result summary. |
|
Timeout | Applies to: Microsoft SharePoint Server 2010 search Gets or sets the amount of time, in milliseconds, before the query request times out. |
|
TotalRowsExactMinimum | Applies to: Microsoft SharePoint Server 2010 search Used by SearchPagingWebPart to determine the minimum value required for rendering page links. |
|
TrimDuplicates | Gets or sets a Boolean value that specifies whether duplicate items should be removed from the search results. For FAST Search Server 2010 for SharePoint, this property can also be used to collapse hits in the result set. | |
UrlZone | Gets the originating URL zone for the query request. |
Top
Methods
Name | Description | |
---|---|---|
Dispose | Disposes the instance of the Query class. | |
Equals | (Inherited from Object.) | |
Execute | Executes the search query. | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetProperties | Returns information about managed properties. | |
GetQuerySuggestions | Returns a list of query suggestions matching the search terms typed in the search box. | |
GetScopes | Returns information about search scopes. | |
GetType | (Inherited from Object.) | |
HighlightStringValue | Applies to: Microsoft SharePoint Server 2010 search Highlights all the occurrences of the specified query terms in a string. |
|
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top