Nhóm các cụm từ tìm kiếm
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Bạn có thể nhóm nhiều cụm từ tìm kiếm lại với nhau bằng dấu ngoặc đơn ((
và )
).
Ví dụ:
(hello OR world) AND lang:java
Bạn cũng có thể lồng nhiều nhóm. Ví dụ:
((Strings OR StringBuilder) AND lang:java) OR (std AND lang:cpp)
Để biết thêm thông tin, hãy xem phần Các lựa chọn cú pháp bổ sung trong tài liệu tham khảo.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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."]]