包含基于的关键字搜索查询的信息。表示使用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 继承。) |
页首
.gif)
.gif)
.gif)
.gif)