知名結構定義
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
除了自訂結構定義外,我們還定義了下列已知的結構定義
並方便您使用
字典項目
_dictionaryEntry
類型的項目可包含下列屬性:
屬性 |
類型 |
說明 |
必填與否 |
_term |
string |
要定義的字詞。建議值是沒有標點符號的連續字詞或詞組。 |
必填 |
_synonym |
string (repeated) |
與 _term 中定義的字串相符的查詢中要包含的替代字詞。 |
必填 |
_onlyApplicableForAttachedSearchApplications |
boolean |
讓您依資料來源和搜尋應用程式將同義詞分組。詳情請參閱「定義資料來源專屬的同義詞」。 |
選用 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Well-known schemas\n\nIn addition to custom schemas, the following well-known schemas are defined\nfor your use.\n\nDictionary Entries\n------------------\n\nItems of type `_dictionaryEntry` can have the following properties:\n\n| Property | Type | Description | Required? |\n|------------------------------------------------|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|\n| `_term` | string | The term to define. Recommended values are unhyphenated words or phrases without punctuation. | Required |\n| `_synonym` | string (repeated) | Alternate terms to be included in queries matching the string defined in `_term`. | Required |\n| `_onlyApplicableForAttachedSearchApplications` | boolean | Allows you to group synonyms by data source and search application. For further information, see [Define data source-specific synonyms](/workspace/cloud-search/docs/guides/synonyms#specific). | Optional |"]]