KeywordQuery 成员 (Microsoft.Office.Server.Search.Query)

Represents a search query using the Enterprise Search keyword syntax.

以下表格列出了由 KeywordQuery 类型公开的成员。

公共构造函数

  名称 说明
公共方法 KeywordQuery 已重载。 Initializes a new instance of the KeywordQuery class.

页首

公共属性

  名称 说明
公共属性 Application  Gets the application name for the query request.(继承自 Query
公共属性 AuthenticationType  Gets or sets the authentication type for the query.(继承自 Query
公共属性 Culture  Gets or sets the locale for the query.(继承自 Query
公共属性 EnableStemming  Gets or sets a Boolean value that specifies whether stemming is enabled. (继承自 Query
公共属性 EnableUrlSmashing Gets or sets a Boolean value that specifies whether "URL smashing" (creating a URL by combining the query terms) is enabled.
公共属性 HiddenConstraints Gets or sets the keyword query’s hidden constraints.
公共属性 HighlightedSentenceCount  Gets or sets the number of sentences to include in the hit-highlighted summary.(继承自 Query
公共属性 Hint  Gets or sets the suggested query processor behavior for the query.(继承自 Query
公共属性 IgnoreAllNoiseQuery  Gets or sets a Boolean value that specifies whether the search query should execute if the query text contains only noise words.(继承自 Query
公共属性 KeywordInclusion  Gets or sets a value that specifies whether the query returns results that contain all or any of the specified search terms. (继承自 Query
公共属性 PagingCookie  Gets or sets a client-side state cookie that tracks the number of query results filtered out by security trimming.(继承自 Query
公共属性 QueryText  Gets or sets the text for the search query.(继承自 Query
公共属性 ResultTypes  Gets or sets a value that specifies the search result type.(继承自 Query
公共属性 RowLimit  Gets or sets the maximum number of rows returned in the search results.(继承自 Query
公共属性 SelectProperties Gets a list of the properties to return in the search results.
公共属性 ServerContext  Gets a ServerContext object that provides run-time methods for shared services in Microsoft Office SharePoint Server 2007.(继承自 Query
公共属性 Sid  Gets or sets the query’s security identifier (SID).(继承自 Query
公共属性 Site  Gets the collection of Web sites associated with the query.(继承自 Query
公共属性 SiteContext  Gets or sets the site URL for the search query.(继承自 Query
公共属性 SortList Gets the list of properties by which the search results are ordered.
公共属性 StartRow  Gets or sets first row included in the search results. (继承自 Query
公共属性 Timeout  Gets or sets the amount of time, in milliseconds, before the query request times out. (继承自 Query
公共属性 TotalRowsExactMinimum  Used by Microsoft.Office.Server.Search.WebControls.SearchPagingWebPart to determine the minimum value required for rendering page links.(继承自 Query
公共属性 TrimDuplicates  Gets or sets a Boolean value that specifies whether duplicate items should be removed from the search results. (继承自 Query
公共属性 UrlZone  Gets the originating URL zone for the query request.(继承自 Query

页首

公共方法

(另请参阅 受保护的方法 )

  名称 说明
公共方法 Dispose  (继承自 Query
公共方法 Equals  已重载。 (继承自 Object
公共方法 Execute 已重写。 Executes the keyword syntax search query.
公共方法 GetHashCode  (继承自 Object
公共方法 GetProperties  Returns information about managed properties.(继承自 Query
公共方法 GetResults  (继承自 Query
公共方法 GetScopes  Returns information about search scopes.(继承自 Query
公共方法 GetType  (继承自 Object
公共方法 静态 ReferenceEquals  (继承自 Object
公共方法 ToString  (继承自 Object

页首

受保护的方法

  名称 说明
受保护的方法 _GetInterfaces  (继承自 Query
受保护的方法 Finalize  (继承自 Object
受保护的方法 FinishConstruction  (继承自 Query
受保护的方法 GetSearchApp  Gets the search context for the Shared Service Provider's search service.(继承自 Query
受保护的方法 MemberwiseClone  (继承自 Object
受保护的方法 ThrowIfProductExpired  (继承自 Query
受保护的方法 ThrowIfUnSupportedTopologyForMSSExpress  (继承自 Query

页首

另请参阅

参考

KeywordQuery 类
Microsoft.Office.Server.Search.Query 命名空间

其他资源

企业级搜索关键字语法参考
企业级搜索查询对象模型概述
演练:创建自定义企业级搜索 Web 部件