ScopeUrl

ScopeUrl 指定搜尋提供者的 URL。

若要尋找搜尋提供者的 URL:

  1. 開啟 Internet Explorer。

  2. 開啟執行 Web 搜尋的提供者網頁。

  3. 在單字 TEST上搜尋 。 記下出現的新 URL。

  4. 選擇性:在網址列中,從產生的URL中移除任何明顯的額外字元。 再次搜尋並重複,直到您具有搜尋所需的最低URL為止。

    範例: http://search.fabrikam.com/results.aspx?q="TEST"&language=en:要移除 language=en 成為 http://search.fabrikam.com/results.aspx?q="TEST"

  5. 複製 URL,並將它貼到 。

  6. 將 取代 TEST 為 {searchTerms}。

    範例: http://search.fabrikam.com/results.aspx?q="TEST" 變成 http://search.fabrikam.com/results.aspx?q="{searchTerms}"

  7. 取代 XML 保留字元: <> ' &. 如需取代字元的清單,請參閱下表 XML 保留字元

    範例: http://search.fabrikam.com/results.aspx?q="{searchTerms}" 變成 http://search.fabrikam.com/results.aspx?q=&quot;{searchTerms}&quot;

  8. 複製URL並貼到 Windows 系統映像管理員中。

XML 保留字元:

取代此字元 使用此文字

>

&gt;

<

<

"

'

'

&

&

URL

指定搜尋提供者的 URL。 URL 是字串。

這種字串不支援空的元素。 請勿為這種字串建立空值。

有效的組態傳遞

特殊化

父階層

Microsoft-Windows-IE-InternetExplorer SearchScopes | ScopeUrl | |

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 Microsoft-Windows-IE-InternetExplorer

XML 範例

下列 XML 輸出示範如何設定搜尋提供者。

<SearchScopes>
   <Scope wcm:action="add">
      <ScopeDefault>true</ScopeDefault>
      <ScopeDisplayName>MyFirstSearchProvider</ScopeDisplayName>
      <ScopeKey>SearchProvider1</ScopeKey>
      <ScopeUrl>http://www.contoso.com/search?q={searchTerms}</ScopeUrl>
   </Scope>
   <Scope wcm:action="add">
      <ScopeDisplayName>MySecondSearchProvider</ScopeDisplayName>
      <ScopeKey>SearchProvider2</ScopeKey>
      <ScopeUrl>http://search.fabrikam.com/results.aspx?q=&quot;{searchTerms}&quot;</ScopeUrl>
   </Scope>
</SearchScopes>

範圍