2011-07-18 69 views
0

我有一個Sharepoint 2010(完整的SP,而不是基礎服務),我從中檢索結果。但是,根據我指定的頁碼,可用結果的數量發生變化。Sharepoint 2010搜索服務結果不一致

例如,我可能會詢問我的查詢以獲取第4頁和第20頁記錄,結果集顯示總共有大約7000條記錄可用。然後我將頁面更改爲200,現在說我只有2500個可用。

這裏的XML爲我使用的查詢的一個例子:

<?xml version="1.0" encoding="utf-8" ?> 
<QueryPacket xmlns="urn:Microsoft.Search.Query" Revision="1000"> 
<Query domain="QDomain"> 
<SupportedFormats><Format>urn:Microsoft.Search.Response.Document.Document</Format></SupportedFormats> 
<Context> 
    <QueryText language="en-US" type="STRING" >test text SCOPE:"All Sites"</QueryText> 
</Context> 
<Properties><Property name="Filename" /><Property name="Rank" /><Property name="Title" /><Property name="Author" /><Property name="Size" /><Property name="Path" /><Property name="Description" /><Property name="Write" /><Property name="HitHighlightedSummary" /><Property name="HitHighlightedProperties" /></Properties><SortByProperties><SortByProperty name="Rank" direction="Descending" order="1"/></SortByProperties> 
<Range><StartAt>1</StartAt><Count>20</Count></Range> 
<EnableStemming>false</EnableStemming> 
<TrimDuplicates>true</TrimDuplicates> 
<IgnoreAllNoiseQuery>true</IgnoreAllNoiseQuery> 
<ImplicitAndBehavior>true</ImplicitAndBehavior> 
<IncludeRelevanceResults>true</IncludeRelevanceResults> 
<IncludeSpecialTermResults>true</IncludeSpecialTermResults> 
<IncludeHighConfidenceResults>true</IncludeHighConfidenceResults> 
</Query></QueryPacket> 

有一個查詢標籤或參數我失蹤?

回答

1

不,這是由設計。每次切換頁面時都會「估算」結果數量並重新計算。沒有查詢標籤或參數丟失。歡迎來到SharePoint-Wonderland。

這是一個鏈接。這是關於SharePoint 2007,但也適用於2010年: http://blogs.officezealot.com/mauro/archive/2009/03/07/21441.aspx

+0

謝謝,有道理,那麼爲什麼默認搜索結果頁面沒有第一個/最後一個按鈕,只有頁碼和Next/Previous。 –