searchHit 资源类型searchHit resource type

命名空间:microsoft.graphNamespace: microsoft.graph

重要

/betaMicrosoft Graph 中的版本下的 api 可能会发生更改。APIs under the /beta version in Microsoft Graph are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported. 若要确定 API 在 v1.0 中是否可用,请使用 版本 选择器。To determine whether an API is available in v1.0, use the Version selector.

注意

Microsoft Search API 请求和响应中使用的资源已重命名或删除了属性或者已被弃用。Resources used in a Microsoft Search API request and response have had properties renamed or removed, or are being deprecated. 查找有关过时的更多详细信息Find more details about the deprecation. 相应更新任何早期应用中的搜索 API 查询。Update search API queries in any earlier apps accordingly.

代表搜索结果列表中的单个结果。Represents a single result within the list of search results.

属性Properties

属性Property 类型Type 描述Description
hitIdhitId 字符串String 项的内部标识符。The internal identifier for the item.
排名rank Int32Int32 结果的排名或顺序。The rank or the order of the result.
contentSourcecontentSource 字符串String ExternalItem所属的内容源的名称。The name of the content source which the externalItem is part of .
摘要summary 字符串String 如果摘要可用,则为结果摘要。A summary of the result, if a summary is available.
resourceresource 实体entity 搜索结果的基本 Microsoft Graph 表示形式。The underlying Microsoft Graph representation of the search result.
_id (已弃用) _id (deprecated) 字符串String 重命名为 hitIdRenamed as hitId. 项的内部标识符。The internal identifier for the item.
_score (已弃用) _score (deprecated) Int32Int32 重命名为 rankRenamed as rank. 结果的分数或顺序。The score or the order of the result.
_summary (已弃用) _summary (deprecated) 字符串String 重命名为 摘要Renamed as summary. (如果摘要可用) 的结果摘要。A summary of the result (if summary is available).
_sortField (已弃用) _sortField (deprecated) 字符串String 此属性已被删除。This property has been removed.
_source (已弃用) _source (deprecated) 实体entity 重命名为 资源Renamed as resource. 搜索结果的基础图形表示形式。The underlying Graph representation of the search result.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。The following is a JSON representation of the resource.

{
  "hitId": "String",
  "rank": 1,
  "summary": "String",
  "contentSource": "String",
  "resource": { "@odata.type": "microsoft.graph.entity" },
  "_id": "String",
  "_score": 1024,
  "_sortField": "String",
  "_summary": "String",
  "_source": { "@odata.type": "microsoft.graph.entity" }
}