規劃 SharePoint Server 中的搜尋結果頁面上使用精簡器Plan to use refiners on a search results page in SharePoint Server

摘要:了解如何規劃 SharePoint Server 2016 或 SharePoint Server 2013 中的搜尋結果頁面上使用精簡器。Summary: Learn how to plan to use refiners on a search results page in SharePoint Server 2016 or SharePoint Server 2013.

在本文中,您將了解:In this article, you'll learn:

如何精簡器幫助規劃日本往返How refiners helped plan a trip to Japan

雖然字詞 「 精簡器 」 是您的新,有良好機會您已經使用它們。例如,如果您曾經已購買線上叢書,很有可能您用以精簡器找出正確的通訊錄。Although the term "refiners" is new to you, there is a good chance you've already used them. For example, if you have ever bought a book online, most likely you used refiners to find the right book.

例如,假設您上線至您最愛書店尋找有關日本旅行輔助線。您輸入"日本"入 [搜尋] 欄位及預期、 頁面取出指定的搜尋結果。Trawling 透過] 頁面之後 like 太多樂趣看似未執行] 頁面上的結果。幸好網站設計者會提供一種方式來縮小搜尋結果。在左側的頁面是 「 類別 」 清單包含如"Cooking,"「 地理 」、 「 歷程記錄 」 項目"旅行"等等。按一下 ["旅行社"並立即,在搜尋結果顯示包含單字旅行書籍"日本"。Suppose, for example, that you went online to your favorite bookstore to find a travel guide about Japan. You typed "Japan" into the search field, and as expected, pages of search results popped up. Trawling through page after page of results does not seem like much fun. Luckily, the site designers provided a way to narrow the search results. On the left side of the page is a "Categories" list that contain entries such as "Cooking," "Geography," "History," "Travel," and so on. You click "Travel," and in an instant, the search results show only travel books that contains the word "Japan."

但有開啟取出的是許多旅行書籍向外有日本。因此,您需要修剪更多結果。您已尋找平裝版本。如此,仍著重在左邊的頁面清單上,您找出類別稱為 「 格式 」 包含字詞 like"Hardcover,""PDF,""音訊 」、 「 數位"和"平裝"。讓您按一下 ["平裝"並 got 您是否已被尋找的項目: 結果旅行社日本書單中平裝 !不過,已仍太大的搜尋結果數目。因此,您繼續使用頁面左側的各種清單直到您已切入至五個所有候選項目,其中會完成線路並官方進入您購物車的右邊。But, turns out that there are many travel books out there on Japan. Therefore, you need to trim the results even more. You were looking for a paperback version. So, still focusing on the lists at the left side of the page, you spot a category called "Format" that contain terms like "Hardcover," "PDF," "Audio," "Digital," and "Paperback." So you click "Paperback" and got what you've been looking for: results for travel books about Japan in paperback! Unfortunately, the number of search results was still too large. Therefore, you continue to use the various lists on the left side of the page until you've drilled right down to five hopeful candidates, one of which makes it over the finish line and goes straight into your shopping cart.

現在,以下是需要技術,其實不然組件: 當您已按一下"旅行"和"平裝"您已、 事實上,使用精簡器。在 SharePoint 字詞精簡器是由可精簡搜尋的 managed 的屬性。精簡器值就是可精簡搜尋的 managed 屬性的值。因此但如果是線上購物來回 「 類別 」 和 「 格式 」 是精簡器。"旅行"和"平裝"是精簡器值。Now, here's the techy part: when you were clicking "Travel" and "Paperback" you were, in fact, using refiners. In SharePoint terms, a refiner is a managed property that is made refinable. Refiner values are the values of a refinable managed property. So in the case of your online shopping trip, "Categories" and "Format" are refiners. "Travel" and "Paperback" are refiner values.

下列文章從 managed 屬性集的網站欄功能的?說明欄"轉換 」 的網站編目期間所管理的內容。例如,在搜尋中心案例中,我們有網站欄名為 「 內部作者 」。每個清單項目,此網站欄包含的文章的作者名稱 (請記住,每個清單項目代表本文)。您有可協助使用者快速搜尋結果縮小至完全像您縮小搜尋結果時購物上日本旅行叢書的特定的作者所撰寫的文章,讓 managed 的屬性代表 「 內部作者 」 網站欄可精簡搜尋。有,當然,稍微它比,且所有步驟會都述更新的文章。The article From site column to managed property - What's up with that? explains how site columns are "transformed" into managed properties during a crawl. For example, in our Search Center scenario, we have a site column named "Internal Writer." For each list item, this site column contains the name of the writer of an article (remember, each list item represents an article). To help the user quickly narrow search results to articles that are written by a particular writer, exactly like you narrowed search results when shopping for a travel book on Japan, you had to make the managed property that represents the "Internal Writer" site column refinable. There is, of course, a bit more to it than that, and all the steps will be explained in later articles.

要尋找時識別精簡器的項目What to look for when you identify refiners

這是簡單的其中一個: 若要識別精簡器,尋找使用者將要用來縮小其搜尋結果的資訊。This is an easy one: to identify refiners, look for information that users will want to use to narrow their search results.

在搜尋中心案例中,我們想要使用下列的精簡器:In our Search Center scenario, we wanted to use the following refiners:

  • ManagerManager

  • 內部編寫器Internal Writer

  • 編輯器Editor

  • 內容類型Content Type

  • 要求的發佈日期Requested Publish Date

關於進行可精簡搜尋的 managed 的屬性About making a managed property refinable

您必須執行動作時設定精簡器最先是要讓您要使用的 managed 的屬性可精簡搜尋。根據您的權限層級,您可以這麼從兩個位置:The first thing that you have to do when you configure refiners is to make the managed properties that you want to use, refinable. Depending on your permission level, you can do this from two places:

若要啟用從 managed 的屬性的精簡器功能To refiner-enable a managed property from 需要的權限等級Requires permission level
管理中心Central Administration
Search Service 應用程式管理員Search service application administrator
網站集合管理Site Collection Administration
網站集合管理員Site collection administrator

沒有理由為什麼您可以這麼做從兩個位置。如果您正在處理內容 (假設您是內容管理員),您正在可能性 Search service 應用程式管理層級權限,也就是您將不會有管理中心存取權。但是,都很有可能具有網站集合管理員權限。There's a reason why you can do this from two places. If you are working with content (let's say you're a content manager), you're unlikely to have Search service application administration level rights, that is, you won't have access to Central Administration. But, you are very likely to have Site collection administrator permissions.

此系列 (如何設定搜尋結果網頁組件以使用新的結果來源) 的前一篇文章所述的方式內容管理員可以輕鬆地將內容新增至搜尋索引不必 pester Search service 應用程式管理員。所以既然所有人為高興,我們不想要讓內容管理員取決於 Search service 應用程式管理員啟用精簡器危及此快樂。The previous article of this series (How to configure the Search Results Web Part to use a new result source) explained how content managers can easily add content to the search index without having to pester Search service application administrators. So now that everyone's happy, we don't want to jeopardize this happiness by making content managers dependent on a Search service application administrator to enable refiners.

本文僅說明的程序為網站集合管理員 (內容管理員) 您可以執行。如需如何 Search service 應用程式管理員可以幫助 managed 的屬性可精簡搜尋,請參閱啟用自動建立 managed 的屬性當作精簡器在 SharePoint 管理中心This article only describes the procedure as it can be performed by a Site collection administrator (content manager). For information on how Search service application administrators can make a managed property refinable, see Enable automatically created managed properties as refiners in SharePoint Central Administration.

關於可精簡搜尋的 managed 屬性About refinable managed properties

前一節所述"最先進行的設定精簡器時必須執行動作是要讓您要使用的 managed 的屬性可精簡搜尋 」。會該網站集合管理員 (內容管理員) 無法執行這項作業由於沒有必要的權限層級。但是,不要有要編目的屬性對應到可精簡搜尋的 managed 屬性的權限層級。The previous section stated "The first thing that you must do when you configure refiners is to make the managed properties that you want to use, refinable." Well, turns out that Site collection administrators (content managers) can't do this because they don't have the required permission level. But, they do have the permission level to map a crawled property to a refinable managed property.

是否混淆吗?讓我們看接近。Confused? Let's take a closer look.

搜尋服務應用程式管理員,負責有管理中心存取權,可以直接在 managed 屬性上設定許多事項。例如,下列螢幕擷取畫面顯示他們可以如何變更名為InternalWriterOWSUSER從可精簡搜尋] 功能表中選取[Yes-active,或是-潛伏為可精簡搜尋的屬性。Search service application administrators, who have access to Central Administration, can configure many things directly on a managed property. For example, the following screen shot shows how they can change the property named InternalWriterOWSUSER to be refinable by selecting either Yes - active, or Yes - latent from the Refinable menu.

CA 中的屬性

如果我們查看網站集合管理員,網站集合層級上設定屬性,人員觀點相同屬性的屬性名稱變為,不僅鎖定Refinable選擇功能表 (其可能無法輕鬆地查看在螢幕擷取畫面,但欄位鎖定)。If we look at the same property from the perspective of a Site collection administrator, who is configuring the property on the site collection level, not only is the property name grayed out, but the Refinable choice menu is locked (it might not be easy to see on the screen shot, but the field is locked).

SA 中的屬性

幸好有許多 「 空白 」 的 managed 的屬性的預設啟用為精簡器。在此上下文中,「 空白 」 表示的編目的屬性不會對應至其中。這表示網站集合管理員可以對應至其中一個精簡器啟用 managed 屬性的編目的屬性不必取決於 Search service 應用程式管理員。Luckily, there are many "empty" managed properties that are enabled as refiners by default. In this context, "empty" means that a crawled property is not mapped to it. This means that Site collection administrators can map a crawled property to one of these refiner-enabled managed properties without having to depend on a Search service application administrator.

下表提供預設啟用為精簡器的 managed 屬性概觀。The table below provides an overview of the managed properties that are enabled as refiners by default.

Managed 屬性名稱Managed property name 對應的資料類型Data type for mapping 精簡器值的顯示格式Display format for refiner values
RefinableDate00 - RefinableDate19RefinableDate00 - RefinableDate19
數值包含日期Values contain dates
間隔Intervals
RefinableDecimal00 - RefinableDecimal09RefinableDecimal00 - RefinableDecimal09
數值包含數字,最大的三個小數位數Values contain numbers with maximum three decimals
間隔Intervals
RefinableDouble00 - RefinableDouble09RefinableDouble00 - RefinableDouble09
值包含三個以上的小數位數字Values contain numbers with more than three decimals
間隔Intervals
RefinableInt00 - RefinableInt49RefinableInt00 - RefinableInt49
數值為整數Values are whole numbers
間隔Intervals
RefinableString00 - RefinableString99RefinableString00 - RefinableString99
數值為字串。這包括使用資料類型的文字、 個人或群組、 受管理的中繼資料、 選擇和 [是] 的值/否Values are strings. This includes values that use the data type Text, Person or Group, Managed Metadata, Choice, and Yes/No
清單List

在搜尋中心案例中,我們已經有識別我們想要使用的精簡器。每個這些精簡器,我們會定義我們會使用哪一個可精簡搜尋的 managed 的屬性:In our Search Center scenario, we had already identified the refiners that we wanted to use. For each of these refiners, we defined which refinable managed property we would use:

若要使用的精簡器Refiner to use 可精簡搜尋的 managed 的屬性Refinable managed property
ManagerManager
RefinableString01RefinableString01
內部編寫器Internal Writer
RefinableString02RefinableString02
編輯器Editor
RefinableString03RefinableString03
內容類型Content Type
RefinableString04RefinableString04
要求的發佈日期Requested Publish Date
RefinableDate01RefinableDate01

因此現在我們已的計劃要使用的精簡器下, 一個工作就是不要實際的精簡器設定。So now that we have a plan for which refiners to use, the next task is to do the actual refiner configuration.

本系列中的下一篇文章Next article in this series

如何將精簡器新增至 SharePoint Server 中的搜尋結果頁面How to add refiners to your search results page in SharePoint Server