將搜尋字詞分組
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以使用括號 ((
和 )
) 將多個搜尋字詞歸類為一組。
例如:
(hello OR world) AND lang:java
您也可以巢狀處理多個群組。例如:
((Strings OR StringBuilder) AND lang:java) OR (std AND lang:cpp)
詳情請參閱參考說明文件中的「其他語法選項」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eSearch terms can be grouped together using parentheses for more complex queries.\u003c/p\u003e\n"],["\u003cp\u003eNested grouping with parentheses allows combining multiple search conditions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOR\u003c/code\u003e operator searches for either term within a group, while the \u003ccode\u003eAND\u003c/code\u003e operator requires both terms to be present.\u003c/p\u003e\n"],["\u003cp\u003eFor detailed syntax information, refer to the additional syntax options in the reference documentation.\u003c/p\u003e\n"]]],[],null,["# Grouping search terms\n\nYou can group multiple search terms together using parentheses (`(` and `)`).\nFor example: \n\n (hello OR world) AND lang:java\n\nYou can also nest multiple groups. For example: \n\n ((Strings OR StringBuilder) AND lang:java) OR (std AND lang:cpp)\n\nFor more information see [Additional syntax options](../reference#syntax-options)\nin the reference documentation."]]