SharePoint REST API 设置SummaryLength属性

  前言ci

  最近调用搜索服务,发现一个问题,就是全文检索返回的内容不够,只有20个字符。it

  正文cli

  这不,这就开始找这个问题,后来发现,其实进行搜索的时候,有一个关键字能够对其进行控制。搜索

  也就是说Query.SummaryLength属性,限制返回高亮文字的长度。ember

  咱们能够对其进行设置,可是,它也是有限制的,限制就是长度不能超过一万个字符。word

  You can change the length of the search result summary using the Query.SummaryLength property.poi

  More references:query

  http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.search.query.query.summarylength(v=office.15).aspxco

  http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.search.query.keywordquery_members(v=office.15).aspx字符

  https://social.technet.microsoft.com/Forums/en-US/ce5b0508-6523-4a43-98f6-37ed8a6c2cd0/hit-highlighted-summary-problems

相关文章
相关标签/搜索