KeywordQuery 成员

包含基于的关键字搜索查询的信息。表示使用SharePoint Server 2013关键字语法的搜索查询。关键字查询语言 (KQL) 或快速查询语言 (FQL) 中可能包含下面的语法。有关构建关键字查询的信息,请参阅在 SharePoint 2013 中生成搜索查询

KeywordQuery 类型公开以下成员。

构造函数

  名称 说明
公共方法 KeywordQuery(ClientRuntimeContext)
公共方法 KeywordQuery(ClientRuntimeContext, ObjectPath)

页首

属性

  名称 说明
公共属性 BlockDedupeMode 设置结果块排名的消除重复模式。 (从 Query 继承。)
公共属性 BypassResultTypes 获取或设置一个Boolean值,指示是否从获得ResultTypes()应使用或者重写的搜索结果。 (从 Query 继承。)
公共属性 ClientType 指定其发出查询客户端的名称。 (从 Query 继承。)
公共属性 CollapseSpecification 获取或设置用于折叠搜索结果的条件。
公共属性 Context Returns the context that is associated with the client object. (从 ClientObject 继承。)
公共属性 Culture 获取或设置查询的区域设置。 (从 Query 继承。)
公共属性 DesiredSnippetLength 获取或设置首选摘要长度。 (从 Query 继承。)
公共属性 EnableInterleaving 指定是否应交错中ResultTableCollection通过运行此查询生成的ResultTable对象Boolean值。 (从 Query 继承。)
公共属性 EnableNicknames 获取或设置一个Boolean值,指定是否使用搜索查询中的确切术语来查找匹配项,或如果还将使用昵称。 (从 Query 继承。)
公共属性 EnableOrderingHitHighlightedProperty 指定是否应通过排序点击突出显示的属性Boolean值点击突出显示的术语。 (从 Query 继承。)
公共属性 EnablePhonetic 获取或设置一个Boolean值,指定是否使用查询词拼音表单来查找匹配项。 (从 Query 继承。)
公共属性 EnableQueryRules 指定是否为此查询启用查询规则Boolean值。 (从 Query 继承。)
公共属性 EnableSorting Boolean值,指示是否应搜索结果进行排序。
公共属性 EnableStemming 获取或设置一个布尔值,指定是否启用字根。 (从 Query 继承。)
公共属性 GenerateBlockRankLog 一个布尔值,指定是否通过交错的结果表的BlockRankLog属性返回结果块的排位日志信息。 (从 Query 继承。)
公共属性 HiddenConstraints 获取或设置查询的隐藏的约束的关键字。
公共属性 HitHighlightedMultivaluePropertyLimit 获取或设置多值点击突出显示的属性限制。 (从 Query 继承。)
公共属性 HitHighlightedProperties 获取查询点击突出显示的属性的集合。 (从 Query 继承。)
公共属性 IgnoreSafeQueryPropertiesTemplateUrl 获取或设置一个标志,指示是否应忽略SafeQueryPropertiesTemplateUrl()属性。 (从 Query 继承。)
公共属性 ImpressionID 获取或设置页面印象标识符 (ID)。 (从 Query 继承。)
公共属性 MaxSnippetLength 指定结果摘要的最大长度。 (从 Query 继承。)
受保护的属性 ObjectData Gets the object data for the current client object. (从 ClientObject 继承。)
公共属性 ObjectVersion Gets a string that indicates the version of the current client object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共属性 Path Tracks how a client object is created in the ClientRuntimeContext class so that the object can be recreated on the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共属性 PersonalizationData 获取或设置为当前提交搜索查询的用户的用户个性化数据。 (从 Query 继承。)
公共属性 ProcessBestBets 确定是否启用Best BetsBoolean值。 (从 Query 继承。)
公共属性 ProcessPersonalFavorites 确定是否进行处理个人收藏夹数据Boolean值。 (从 Query 继承。)
公共属性 Properties 获取关键字查询属性包。
公共属性 QueryTag 获取或设置用于标识查询任何自定义标记。用分号分隔多个标记。 (从 Query 继承。)
公共属性 QueryTemplate 指定在运行时用于将根据用户输入的查询的查询模板。 (从 Query 继承。)
公共属性 QueryTemplateParameters 表示的查询模板中的参数。 (从 Query 继承。)
公共属性 QueryText 搜索查询的查询文本。 (从 Query 继承。)
公共属性 RankingModelId 获取或设置要用于查询的排名模型标识符 (ID)。 (从 Query 继承。)
公共属性 RefinementFilters 获取或设置用于筛选器的精简的一组。
公共属性 Refiners 获取或设置的精简条件,在搜索结果中返回一组。每个精简条件的值是指定精简条件的名称和可选的一组精简选项为此精简条件格式字符串。
公共属性 ReorderingRules 获取或设置重新排序规则 (ReorderingRuleCollection) 的集合。
公共属性 ResultsUrl 获取或设置查询的结果页面 URL。 (从 Query 继承。)
公共属性 RowLimit 获取或设置的最大StartRow属性指定的索引位置开始的搜索结果中返回的行数。 (从 Query 继承。)
公共属性 RowsPerPage 获取或设置要返回每页的搜索结果数。 (从 Query 继承。)
公共属性 SafeQueryPropertiesTemplateUrl 指定 QueryProperties 模板的位置。此属性必须没有启用UseRemoteAPIs()权限的用户发出查询时指定。如果启用UseRemoteAPIs()权限将不运行查询,您可以改为在true上设置IgnoreSafeQueryPropertiesTemplateUrl()属性。 (从 Query 继承。)
公共属性 SelectProperties 获取搜索结果中返回属性的列表。
公共属性 ServerObjectIsNull Gets the server object and returns null if the server object is null. (从 ClientObject 继承。)
公共属性 ShowPeopleNameSuggestions 指定是否生成姓名建议。 (从 Query 继承。)
公共属性 SortList 获取一个值,该值返回表示文件版本的文件版本对象的集合。
公共属性 SourceId 指定要用于运行查询的结果源的标识符 (ID)。 (从 Query 继承。)
公共属性 StartRow 获取或设置包括在搜索结果中的第一行。 (从 Query 继承。)
公共属性 SummaryLength 获取或设置搜索结果的长度摘要。 (从 Query 继承。)
公共属性 Tag Gets or sets data that is associated with the client object. (从 ClientObject 继承。)
公共属性 Timeout 获取或查询请求超时之前的毫秒数,设置的时间量。 (从 Query 继承。)
公共属性 TimeZoneId
公共属性 TotalRowsExactMinimum SearchPagingWebPart对象用于确定呈现页面链接的所需的最小值。 (从 Query 继承。)
公共属性 TrimDuplicates 获取或设置一个布尔值,指定是否应运行搜索查询,是否查询文本仅包含干扰词。 (从 Query 继承。)
公共属性 TrimDuplicatesIncludeId 指定与折叠组相关的值,通常在用户单击具有重复项的项目的 Duplicates (n)链接时使用。
公共属性 TypedObject Gets the object with the correct type information returned from the server. (从 ClientObject 继承。)
公共属性 UILanguage 指定用户界面语言。 (从 Query 继承。)

页首

方法

  名称 说明
受保护的方法 CheckUninitializedProperty Checks to determine whether the specified value type property of a ClientObject has been initialized. (从 ClientObject 继承。)
公共方法 CustomFromJson Returns a Boolean value that indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 FromJson Indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 GetQueryCompletions (从 Query 继承。)
公共方法 GetQuerySuggestionsWithResults 返回匹配的搜索框中键入搜索词的查询建议列表。 (从 Query 继承。)
受保护的方法 InitNonPropertyFieldFromJson Initializes a non-property field of the client object based on JavaScript 对象表示法 (JSON) data from the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
受保护的方法 InitOnePropertyFromJson (覆盖 Query.InitOnePropertyFromJson(String, JsonReader)。)
公共方法 IsObjectPropertyInstantiated Indicates whether the specified property of the client object is instantiated. (从 ClientObject 继承。)
公共方法 IsPropertyAvailable Returns a Boolean value that indicates whether the specified scalar property has been retrieved or set. (从 ClientObject 继承。)
受保护的方法 LoadExpandoFields Initializes the extended properties associated with the client object when overridden in a derived class. (从 ClientObject 继承。)
公共方法 RefreshLoad Reloads all scalar properties associated with the client object when overridden in a derived class. (从 ClientObject 继承。)
受保护的方法 RemoveFromParentCollection Removes the current client object from the parent client object collection. (从 ClientObject 继承。)
公共方法 Retrieve() Retrieves all scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 Retrieve([]) Retrieves the specified scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 ToString (从 Object 继承。)
受保护的方法 UpdateClientObjectPropertyType Updates the client object property's value to have correct type by using the type information returned from the server. (从 ClientObject 继承。)

页首

另请参阅

引用

KeywordQuery 类

Microsoft.SharePoint.Client.Search.Query 命名空间