在 SharePoint Server 中自動建立 managed 的屬性Automatically created managed properties in SharePoint Server

摘要:了解自動建立編目的屬性與 managed 的屬性的命名慣例。Summary: Learn about the naming conventions for automatically created crawled properties and managed properties.

網站欄如何成為 Managed 屬性How site columns become managed properties

當您將欄新增至 SharePoint 文件庫或清單時,您可以選擇要新增網站欄或一般的欄。如需一般欄及網站欄之間的差異,請參閱 < Introduction to 欄。SharePoint 中包含值的網站欄會自動成為 managed 的屬性時要編目時。他們編目時,則一般欄將不會自動成為 managed 的屬性。When you add columns to a SharePoint library or list, you can choose to add regular columns or site columns. For information about the difference between regular columns and site columns, see Introduction to columns. In SharePoint, only site columns that contain values will automatically become managed properties when they are crawled. Regular columns will not automatically become managed properties when they are crawled.

您可以使用其他網站集合共用文件庫或清單中的內容之前,您必須共用文件庫或清單作為目錄,並再開始完整編目的內容。如需詳細資訊,請參閱 「 共用文件庫或清單作為目錄 」 中設定跨網站發佈的 SharePoint 伺服器Before you can share content in a library or list with other site collections, you must share the library or list as a catalog, and then start a full crawl of the content. For more information, see "Share a library or list as a catalog" in Configure cross-site publishing in SharePoint Server.

編目文件庫內容期間,會對網站欄執行下列動作:During the crawl of library content, the following actions are performed on the site columns:

  1. 建立編目屬性。從網站欄名稱中移除空格,然後將下列首碼新增至網站欄名稱,以建立編目屬性名稱:A crawled property is created. Spaces are removed from the site column name, and then the following prefixes are added to the site column name to create the crawled property name:

    • 為網站欄類型的發佈 HTML多行文字: ows_r__<四字母代碼>For site columns of type Publishing HTML and Multiple line of text: ows_r_ _<four letter code>

    • 受管理的中繼資料] 類型的網站欄: ows_taxId_For site columns of type Managed Metadata: ows_taxId_

    • 若是其他所有網站欄類型: ows_q__<四字母代碼>For all other site column types: ows_q_ _<four letter code>

  2. 建立 Managed 屬性並對應至相對應的編目屬性。從網站欄名稱中移除空格,然後將下列項目新增至網站欄名稱,以建立 Managed 屬性名稱:A managed property is created and mapped to the corresponding crawled property. Spaces are removed from the site column name, and the following items are added to the site column name to create the managed property name:

    • 所有網站的受管理的中繼資料] 類型的欄,新增下列首碼: owstaxIdFor all site columns of type Managed Metadata, the following prefix is added: owstaxId

    • 若是其他所有的網站欄類型,新增下列尾碼: OWS <四字母代碼>For all other site column types, the following suffix is added: OWS <four letter code>

重要

四個字母的代碼表示網站欄類型,而不是 Managed 屬性類型。所有自動建立的 Managed 屬性皆為「文字」類型。The four letter code represents the site column type, not the managed property type. All automatically created managed properties are of type Text.

自動建立編目的屬性名稱和 managed 的屬性名稱不含特殊字元的網站欄的範例Examples of automatically created crawled property names and managed property names for site columns without special characters

網站欄類型Site column type 網站欄名稱Site column name 編目的屬性名稱Crawled property name Managed 屬性名稱Managed property name 資料格式Data format
單行文字Single line of text
網站欄名稱Site Column Name
ows_q_TEXT_SiteColumnNameows_q_TEXT_SiteColumnName
SiteColumnNameOWSTEXTSiteColumnNameOWSTEXT
不變。As is.
多行文字Multiple lines of text
網站欄名稱Site Column Name
ows_r_MTXT_SiteColumnNameows_r_MTXT_SiteColumnName
SiteColumnNameOWSMTXTSiteColumnNameOWSMTXT
不變。As is.
選擇Choice
網站欄名稱Site Column Name
ows_q_CHCS_SiteColumnNameows_q_CHCS_SiteColumnName
SiteColumnNameOWSCHCSSiteColumnNameOWSCHCS
選項的文字值。The text value of the choice.
選項 (允許多重選取)Choice (allow multiple selections)
網站欄名稱Site Column Name
ows_q_CHCM_SiteColumnNameows_q_CHCM_SiteColumnName
SiteColumnNameOWSCHCMSiteColumnNameOWSCHCM
選取 [以分號和井分隔的值-例如 MultiValue 2; # MultiValue 4; #。Selected values separated by semicolon and hash mark — for example, MultiValue 2;# MultiValue 4;#.
數字Number
網站欄名稱Site Column Name
ows_q_NMBR_SiteColumnNameows_q_NMBR_SiteColumnName
SiteColumnNameOWSNMBRSiteColumnNameOWSNMBR
數字的文字表現方式。此值會使用點做為小數點符號。Textual representation of the number. The value will use dot as a decimal symbol.
與其他整數進行大於或小於比較時,無法使用此格式。只有在查詢及顯示實際值時,才應該使用此格式。This format cannot be used in a greater than or less than comparison with other integers. It should only be used when querying for and displaying an exact value.
貨幣Currency
網站欄名稱Site Column Name
ows_q_CURR_SiteColumnNameows_q_CURR_SiteColumnName
SiteColumnNameOWSCURRSiteColumnNameOWSCURR
數字的文字表現方式。此值會使用點做為小數點符號。Textual representation of the number. The value will use dot as a decimal symbol.
與其他整數進行大於或小於比較時,無法使用此格式。只有在查詢及顯示實際值時,才應該使用此格式。This format cannot be used in a greater than or less than comparison with other integers. It should only be used when querying for and displaying an exact value.
日期及時間Date and Time
網站欄名稱Site Column Name
ows_q_DATE_SiteColumnNameows_q_DATE_SiteColumnName
SiteColumnNameOWSDATESiteColumnNameOWSDATE
日期的文字表現方式,格式為 YYYY-MM-DDTHH:MM:SSZ。例如,2012 年 12 月 25 日上午 7 點 (GMT) 為 2012-12-25T07:00:00Z。Textual representation of the date in the format YYYY-MM-DDTHH:MM:SSZ. For example, December 25, 2012, 7 AM GMT is 2012-12-25T07:00:00Z.
與其他日期進行大於或小於比較時,無法使用此格式。只有在查詢及顯示實際日期時,才應該使用此格式。This format cannot be used in a greater than or less than comparison with other dates. It should only be used when querying for and displaying an exact date.
是/否Yes/No
網站欄名稱Site Column Name
ows_q_BOOL_SiteColumnNameows_q_BOOL_SiteColumnName
SiteColumnNameOWSBOOLSiteColumnNameOWSBOOL
若為 True,請使用值 1。若為 False,請使用值 0。For true, use value 1. For false, use value 0.
個人或群組Person or Group
網站欄名稱Site Column Name
ows_q_USER_SiteColumnNameows_q_USER_SiteColumnName
SiteColumnNameOWSUSERSiteColumnNameOWSUSER
電子郵件Email
超連結或圖片Hyperlink or Picture
網站欄名稱Site Column Name
ows_q_URLH_SiteColumnNameows_q_URLH_SiteColumnName
SiteColumnNameOWSURHLSiteColumnNameOWSURHL
URL、 描述。例如, http://www.contoso.com、 歡迎使用 [首頁] 頁面上的 Contoso。URL, description. For example, http://www.contoso.com, Welcome to the home page of Contoso.
發佈 HTMLPublishing HTML
網站欄名稱Site Column Name
ows_r_HTML_SiteColumnNameows_r_HTML_SiteColumnName
SiteColumnNameOWSHTMLSiteColumnNameOWSHTML
Html 逸出圍繞在段落標記。例如, <p>&lt; div&gt;&lt; b&gt; 某些 html &lt; /b&&lt; / div&gt;</p>。Html escaped enclosed in a paragraph tag. For example, <p>&lt;div&gt;&lt;b&gt;some html &lt;/b&&lt;/div&gt;</p>.
發佈圖像Publishing Image
網站欄名稱Site Column Name
ows_q_IMGE_SiteColumnNameows_q_IMGE_SiteColumnName
SiteColumnNameOWSIMGESiteColumnNameOWSIMGE
Html 圖像標籤。例如, <img alt =""src="/sites/pub/SiteCollectionImages/home.jpg"樣式 ="框線&#58 ; 中 0px 實心;"/>。Html image tag. For example, <img alt="" src="/sites/pub/SiteCollectionImages/home.jpg" style="BORDER&#58;0px solid;" />.
發佈連結Publishing Link
網站欄名稱Site Column Name
ows_q_LINK_SiteColumnNameows_q_LINK_SiteColumnName
SiteColumnNameOWSLINKSiteColumnNameOWSLINK
Html 連結標籤。例如, <href ="http&#58 ; / / www.microsoft.com"目標 ="_blank"title ="mytooltip">Microsoft 網站</a>。Html link tag. For example, <a href="http&#58;//www.microsoft.com" target="_blank" title="mytooltip">Microsoft Website</a>.
受管理的中繼資料Managed Metadata
網站欄名稱Site Column Name
ows_taxId_SiteColumnNameows_taxId_SiteColumnName
owstaxIdSiteColumnNameowstaxIdSiteColumnName
請參閱底下的<受管理中繼資料的資料格式>。See "Data format for Managed Metadata" below.
整數*Integer*
網站欄名稱Site Column Name
ows_q_INTG_SiteColumnNameows_q_INTG_SiteColumnName
SiteColumnNameOWSINTGSiteColumnNameOWSINTG
整數的文字表現方式。Textual representation of the integer.
與其他整數進行大於或小於比較時,無法使用此格式。只有在查詢及顯示實際值時,才應該使用此格式。This format cannot be used in a greater than or less than comparison with other integers. It should only be used when querying for and displaying an exact value.
GUID*GUID*
網站欄名稱Site Column Name
ows_q_GUID_SiteColumnNameows_q_GUID_SiteColumnName
SiteColumnNameOWSGUIDSiteColumnNameOWSGUID
以連字號分隔值,並以括弧括住。例如,{147C6BA1-709C-4401-964A-27AC36B62C54}。Values separated by hyphens, enclosed in brackets. For example, {147C6BA1-709C-4401-964A-27AC36B62C54}.
格線選擇*Grid Choice*
網站欄名稱Site Column Name
ows_q_CHCG_SiteColumnNameows_q_CHCG_SiteColumnName
SiteColumnNameOWSCHCGSiteColumnNameOWSCHCG
每列的列名稱以分號和井字號分隔,後面接著選取的值。For each row, row name separated by semi-colon and hash mark, followed by the selected value.
ContentTypeIDFieldType*ContentTypeIDFieldType*
網站欄名稱Site Column Name
ows_q_CTID_SiteColumnNameows_q_CTID_SiteColumnName
SiteColumnNameOWSCTIDSiteColumnNameOWSCTID
名稱: #ContentTypeID; #Name:#ContentTypeID;#
SPS 平均排名SPS average rating
網站欄名稱Site Column Name
ows_q_RAVG_SiteColumnNameows_q_RAVG_SiteColumnName
SiteColumnNameOWSRAVGSiteColumnNameOWSRAVG
數字的文字表現方式。此值會使用點做為小數點符號。Textual representation of the number. The value will use dot as a decimal symbol.
SPS 排名計數SPS rating count
網站欄名稱Site Column Name
ows_q_RCNT_SiteColumnNameows_q_RCNT_SiteColumnName
SiteColumnNameOWSRCNTSiteColumnNameOWSRCNT
整數的文字表現方式。Textual representation of the integer.

*無法透過使用者介面建立欄。*Column creation not available through user interface.

注意

下列的網站欄類型不支援自動建立 managed 屬性: > 查閱 > 導出 > 工作結果 > 摘要連結資料 > 發佈的多媒體資料Automatic creation of managed properties is not supported for the following site column types: > Lookup > Calculated > Task outcome > Summary Links data > Rich media data for publishing

受管理的中繼資料的資料格式。Data format for Managed Metadata.

若要查詢的標記與受管理的中繼資料欄位的項目,您必須使用每個標籤唯一識別碼。您可以將字詞組的字詞庫管理工具,在 [一般] 索引標籤上尋找每個字詞的唯一識別碼。此外,在查詢中使用的資料格式具有指定查詢應套用從字詞組中的層級。此規格設定的唯一識別碼新增下列字首的其中一個:To query for items tagged with a Managed Metadata field, you have to use the Unique Identifier for each label. You can find the Unique Identifier for each term in a term set in the Term Store Management Tool, on the GENERAL tab. In addition, the data format that is used in the query has to specify from which level in the term set the query should apply. This specification is set by adding one of the following prefixes to the Unique Identifier:

  • 若要查詢以某個字詞標示的所有項目:GP0|#To query for all items that are tagged with a term: GP0|#

  • 若要查詢以某個子字詞標示的所有項目:GPP|#To query for all items that are tagged with a child of term: GPP|#

  • 若要查詢以字詞組中某個字詞標示的所有項目:GTSet|#To query for all items that are tagged with a term from a term set: GTSet|#

例如,假設您有一份全世界的餐廳目錄。此目錄包含受管理的中繼資料網站欄「位置」,並繫結至字詞組「世界」。此字詞組具有下列結構 (每個字詞組的 GUID 以括弧括住顯示):For example, let's say that you have a catalog of restaurants around the world. The catalog has a managed metadata site column named Location, which is tied to the term set named World. The term set has the following structure (the GUID for each term is shown in parentheses):

世界 (fc01ae6d-8ed3-4872-9cef-d2199d52d61c)World (fc01ae6d-8ed3-4872-9cef-d2199d52d61c)

- <span data-ttu-id="232e6-269">印度 (c8a43f13-5ea1-45f2-b46d-3a1986a1cbd7)</span><span class="sxs-lookup"><span data-stu-id="232e6-269">India (c8a43f13-5ea1-45f2-b46d-3a1986a1cbd7)</span></span>
  • 孟買 (ad491ed9-c21c-46d9-896c-c0d148957c60)Mumbai (ad491ed9-c21c-46d9-896c-c0d148957c60)

  • 德里 (c195b6e0-9062-446a-9af1-8ec1a642fede)Delhi (c195b6e0-9062-446a-9af1-8ec1a642fede)

    • 法國 (17587ed2-8433-45a4-9f4b-6825164fcd09)France (17587ed2-8433-45a4-9f4b-6825164fcd09)
  • 巴黎 (01031cfe-2492-47f1-8723-45c63ef70ec9)Paris (01031cfe-2492-47f1-8723-45c63ef70ec9)

  • 里昂 (3b2137a9-3c3a-4676-a50a-14f72ab29175)Lyon (3b2137a9-3c3a-4676-a50a-14f72ab29175)

下表顯示目錄項目及查詢範例。The catalog entries and examples of queries are shown in the following tables.

餐廳和地點的目錄項目Catalog entries for restaurants and locations

餐廳Restaurant 位置Location
餐廳 1Restaurant 1
孟買Mumbai
餐廳 2Restaurant 2
孟買Mumbai
餐廳 3Restaurant 3
德里Delhi
餐廳 4Restaurant 4
巴黎Paris
餐廳 5Restaurant 5
里昂Lyon

查詢範例Query examples

查詢Query for 資料格式Data format 查詢會傳回Query will return
孟買的所有餐廳All restaurants in Mumbai
GP0GP0 # ad491ed9-c21c-46d9-896c-c0d148957c60#ad491ed9-c21c-46d9-896c-c0d148957c60
德里的所有餐廳All restaurants in Delhi
GP0GP0 # c195b6e0-9062-446a-9af1-8ec1a642fede#c195b6e0-9062-446a-9af1-8ec1a642fede
印度的所有餐廳All restaurants in India
GPPGPP # c8a43f13-5ea1-45f2-b46d-3a1986a1cbd7#c8a43f13-5ea1-45f2-b46d-3a1986a1cbd7
全世界的所有餐廳All restaurants in the World
GTSetGTSet # fc01ae6d-8ed3-4872-9cef-d2199d52d61c#fc01ae6d-8ed3-4872-9cef-d2199d52d61c

若要顯示的標籤值-例如 Mumbai-您必須使用首碼 L0 |。To display values by label — for example, Mumbai — you have to use the prefix L0|.

特殊字元及不支援的字元Special characters and non-supported characters

如果網站欄名稱包含讀音符號,例如德文、 或不支援字元,例如 #,這些字元都包含在編目的屬性名稱,但不是在 [managed 的屬性名稱。If a site column name contains diacritics, such as the German umlaut, or a non-supported character, such as #, these characters are included in the crawled property name, but not in the managed property name.

自動建立編目的屬性名稱和網站欄包含特殊或不支援字元的 managed 的屬性名稱範例Examples of automatically created crawled property names and managed property names for site columns with special or non-supported characters

網站欄名稱Site column name 編目的屬性名稱Crawled property name Managed 屬性名稱Managed property name
GermanäöGermanäö
ows_q_TEXT_ Germanäöows_q_TEXT_ Germanäö
GermanOWSTEXTGermanOWSTEXT
Site_Column#Site_Column#
ows_q_TEXT_Site_Column#ows_q_TEXT_Site_Column#
SiteColumnOWSTEXTSiteColumnOWSTEXT

注意

下列 Unicode 程式碼區塊視為不支援的字元: Unicode 0000-0021、 Unicode 0080-00a1、 Unicode 2000 2070年、 Unicode ff00 ff10 及 Unicode ff1a ff20。The following Unicode code blocks are considered non-supported characters: Unicode 0000-0021, Unicode 0080 - 00a1, Unicode 2000 - 2070, Unicode ff00 ff10, and Unicode ff1a ff20.

產品目錄內容類型的預設網站欄Default site columns for the Product Catalog content type

產品目錄網站集合中的產品目錄清單具有六個與其內容類型相關聯的預設網站欄。下表顯示這些網站欄的名稱,以及其編目屬性和 Managed 屬性的名稱。The Product Catalog list in the Product Catalog site collection has six default site columns associated with its content type. The following table shows the names for these site columns and the names for their crawled properties and managed properties.

自動建立編目的屬性名稱和 managed 的屬性名稱為屬於產品目錄內容類型的網站欄Automatically created crawled property names and managed property names for site columns that belong to the Product Catalog content type

網站欄名稱Site column name 編目的屬性名稱Crawled property name Managed 屬性名稱Managed property name
標題Title
標題Title
標題Title
項目編號Item Number
ows_q_TEXT_ProductCatalogItemNumberows_q_TEXT_ProductCatalogItemNumber
ProductCatalogItemNumberOWSTEXTProductCatalogItemNumberOWSTEXT
群組編號Group Number
ows_q_TEXT_ProductCatalogGroupNumberows_q_TEXT_ProductCatalogGroupNumber
ProductCatalogGroupNumberOWSTEXTProductCatalogGroupNumberOWSTEXT
語言標記Language Tag
ows_q_CHCS_ProductCatalogLanguageTagows_q_CHCS_ProductCatalogLanguageTag
ProductCatalogLanguageTagOWSCHCSProductCatalogLanguageTagOWSCHCS
項目類別Item Category
ows_taxId_ProductCatalogItemCategoryows_taxId_ProductCatalogItemCategory
owstaxIdProductCatalogItemCategoryowstaxIdProductCatalogItemCategory
彙總圖像Rollup Image
ows_r_IMGE_PublishingRollupImageows_r_IMGE_PublishingRollupImage
PublishingImagePublishingImage