Partager via


KeywordQuery Members

Include Protected Members
Include Inherited Members

Represents a search query that uses the SharePoint Enterprise Search keyword syntax. For information about constructing keyword queries, see the Keyword Query Syntax Reference.

The KeywordQuery type exposes the following members.

Constructors

  Name Description
Public method KeywordQuery(ServerContext) Initializes a new instance of the KeywordQuery class, based on the specified service application context.
Public method KeywordQuery(SPSite) Initializes a new instance of the KeywordQuery class, based on the specified site.
Public method KeywordQuery(String) Obsolete. Initializes a new instance of the KeywordQuery class, based on the specified application name.
Public method KeywordQuery(SearchServiceApplicationProxy) Initializes a new instance of the KeywordQuery class, based on the specified Search service application.

Top

Properties

  Name Description
Public property Application Obsolete. Gets the application name for the query request. (Inherited from Query.)
Public property AuthenticationType Gets or sets the authentication type for the query. (Inherited from Query.)
Public property Culture Gets or sets the locale for the query. (Inherited from Query.)
Public property CustomRefinementIntervals Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the refinement intervals that should be imposed on the FAST Search Server 2010 for SharePoint refinements.
Public property 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. (Inherited from Query.)
Public property EnableFQL Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets a Boolean value that specifies whether the query string is according to the FAST Query Language (FQL) syntax. For details, see FAST Query Language (FQL) Syntax Reference.
Public property 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. (Inherited from Query.)
Public property EnablePhonetic Gets or sets a Boolean value that specifies whether the phonetic forms of the query terms are used to find matches. (Inherited from Query.)
Public property EnableSpellcheck Applies to: Microsoft FAST Search Server 2010 for SharePoint
Specifies how to apply spell correction of the query terms when processing the query. For details, see Linguistic Query Features (FAST Search Server 2010 for SharePoint).
Public property EnableStemming Gets or sets a Boolean value that specifies whether stemming is enabled. (Inherited from Query.)
Public property EnableUrlSmashing Applies to: Microsoft SharePoint Server 2010 search
Gets or sets a Boolean value that specifies whether "URL smashing" (creating a URL by combining the query terms) is enabled.
Public property HiddenConstraints Applies to: Microsoft SharePoint Server 2010 search
Gets or sets the keyword query’s hidden constraints.
Public property HighlightedSentenceCount Applies to: Microsoft SharePoint Server 2010 search
Gets or sets the number of sentences to include in the hit-highlighted summary. (Inherited from Query.)
Public property Hint Gets or sets the suggested query processor behavior for the query. (Inherited from Query.)
Public property HitHighlightedProperties Gets the collection of hit-highlighted properties for the query. (Inherited from Query.)
Public property 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. (Inherited from Query.)
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. (Inherited from Query.)
Public property MaxShallowRefinementHits Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the number of results to be used to calculate shallow refinement results.
Public property MaxSummaryLength Gets or sets the maximum length of the search result summary.
Public property MaxUrlLength Gets or sets the maximum length of the search result URL.
Public property PagingCookie Applies to: Microsoft SharePoint Server 2010 search
Represents the client side cookie used for paging through the search results. (Inherited from Query.)
Public property PartitionId Applies to: Microsoft SharePoint Server 2010 search
Specifies the unique identifier (ID) of the index partition to use for this search query. (Inherited from Query.)
Public property PersonalizationData Applies to: Microsoft SharePoint Server 2010 search
Gets or sets the unique identifier (ID) for the current user who submitted the search query. (Inherited from Query.)
Public property QueryInfo Get the query log data for a single clickthrough for a search query. (Inherited from Query.)
Public property QueryText Gets or sets the text for the search query. (Inherited from Query.)
Public property RankingModelId Applies to: Microsoft SharePoint Server 2010 search
Gets or sets the identifier (ID) of the ranking model to use for the query. (Inherited from Query.)
Public property RefinementFilters Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the set of refinement filters used when issuing a refinement query.
Public property Refiners Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the set of refiners to be returned in a search result. The value for each refiner is a format string that specifies the name of a refiner and optionally a set of refinement options for this refiner. For details, see Specifying Refiners. Default: No refiners will be returned with the query result if the Refiners property is empty.
Public property ResubmitFlags Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the criteria for automatically resubmitting a search query that yielded no results.
Public property ResultsProvider Gets or sets the search provider used for the search query (Inherited from Query.)
Public property ResultTypes Gets or sets a value that specifies the search result type. (Inherited from Query.)
Public property RowLimit Gets or sets the maximum number of rows returned in the search results. (Inherited from Query.)
Public property RowsPerPage Gets or sets the number of search results to return per page. (Inherited from Query.)
Public property SearchApplication Obsolete. Applies to: Microsoft SharePoint Server 2010 search
Gets the Search service application instance for the search query. (Inherited from Query.)
Public property SearchTerms Gets the terms used for the search query.
Public property SelectProperties Gets a list of the properties to return in the search results.
Public property SimilarTo Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the similarity reference when performing a find similar query. For details, see Find Similar (FAST Search Server 2010 for SharePoint).
Public property SimilarType Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the type of find similar query to perform. For details, see Find Similar (FAST Search Server 2010 for SharePoint).
Public property Site Gets the site the search query is executed from. (Inherited from Query.)
Public property SiteContext Gets or sets the site URL for the search query. (Inherited from Query.)
Public property SortList Gets the list of properties by which the search results are ordered.
Public property SortSimilar Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets a Boolean value that specifies whether query results based on similarity shall be sorted by similarity. For details, see Find Similar (FAST Search Server 2010 for SharePoint).
Public property StartRow Gets or sets first row included in the search results. (Inherited from Query.)
Public property SummaryLength Applies to: Microsoft SharePoint Server 2010 search
Gets or sets the length of the search result summary. (Inherited from Query.)
Public property Timeout Applies to: Microsoft SharePoint Server 2010 search
Gets or sets the amount of time, in milliseconds, before the query request times out. (Inherited from Query.)
Public property TimeZone Gets or sets the time zone for the search user.
Public property TotalRowsExactMinimum Applies to: Microsoft SharePoint Server 2010 search
Used by SearchPagingWebPart to determine the minimum value required for rendering page links. (Inherited from Query.)
Public property 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. (Inherited from Query.)
Public property TrimDuplicatesIncludeId Specifies the value associated with a collapse group, typically used when a user clicks the Duplicates (n) link of an item with duplicates.
Public property TrimDuplicatesKeepCount Gets or sets the number of duplicates to keep, if duplicates are returned in the search results.
Public property TrimDuplicatesOnProperty Gets or sets the property the duplicates trimming is based on.
Public property UrlZone Gets the originating URL zone for the query request. (Inherited from Query.)
Public property UserContextData Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the user context data associated with the FAST Search Server 2010 for SharePoint search settings.
Public property UserContextGroupID Applies to: Microsoft FAST Search Server 2010 for SharePoint
Gets or sets the identifier used to group keywords used for matching best bets and visual best bets. This property specifies an identifier used to group keywords used for matching best bets and visual best bets. See also Keyword Management (FAST Search Server 2010 for SharePoint).

Top

Methods

  Name Description
Public method Dispose Disposes the instance of the Query class. (Inherited from Query.)
Public method Equals (Inherited from Object.)
Public method Execute Executes the search query. (Inherited from Query.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetProperties Returns information about managed properties. (Inherited from Query.)
Public method GetQuerySuggestions Returns a list of query suggestions matching the search terms typed in the search box. (Inherited from Query.)
Public method GetScopes Returns information about search scopes. (Inherited from Query.)
Public method GetType (Inherited from Object.)
Public method HighlightStringValue Applies to: Microsoft SharePoint Server 2010 search
Highlights all the occurrences of the specified query terms in a string. (Inherited from Query.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See Also

Reference

KeywordQuery Class

Microsoft.Office.Server.Search.Query Namespace