前言
最近呼叫搜索服務,發現一個問題,就是全文檢索回傳的內容不夠,只有20個字符,
正文
這不,這就開始找這個問題,后來發現,其實進行搜索的時候,有一個關鍵字可以對其進行控制,
也就是說Query.SummaryLength屬性,限制回傳高亮文字的長度,
我們可以對其進行設定,但是,它也是有限制的,限制就是長度不能超過一萬個字符,
You can change the length of the search result summary using the Query.SummaryLength property.
More references:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.search.query.query.summarylength(v=office.15).aspx
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
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/855.html
標籤:SharePoint
上一篇:SharePoint Search REST API 獲取資料
下一篇:kail2017安裝谷歌輸入法
