Get Document summary SharePoint Online REST API

Singh, Piyush 1 Reputation point
2020-08-21T12:03:23.49+00:00

In search API, we get 'HitHighlightedSummary' property. This property provides a summary of the current document.

Do we have an equivalent of, 'HitHighlightedSummary' in SharePoint REST API? I want to query a document library but, would also like to fetch a short summary. Plz help

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,922 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-08-24T02:55:43.883+00:00

    The HitHighlightedSummary is one property of crawled properties,but the SP.File class does not contain a property about summary.
    So I think there should be no way to get a file summary through REST API web namespace.
    SP.File properties for your reference:
    https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-csom/ee542189(v=office.15)


    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments