AND 演算子を使用する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
複数の用語を検索するには、AND
演算子を使用します。この演算子を使用すると、演算子の左右に指定された用語の両方に一致する結果だけが返されます。
複数の検索語を検索する場合は、暗黙的に AND
が使用されます。たとえば、次の検索では、用語 server
が含まれる Python ファイルが返されます。
server lang:python
または、AND 演算子を明示的に指定することもできます。次に例を示します。
server AND lang:python
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eMultiple terms in a search are implicitly linked by \u003ccode\u003eAND\u003c/code\u003e, meaning results must contain all terms.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAND\u003c/code\u003e can be explicitly used for clarity but functions identically to implicit multiple term searches.\u003c/p\u003e\n"],["\u003cp\u003eSearches can use operators like \u003ccode\u003elang:\u003c/code\u003e to refine results based on specific criteria such as programming language.\u003c/p\u003e\n"]]],[],null,["# Using the AND operator\n\nYou can search for multiple terms by using the [`AND`](../reference#operators)\noperator. This operator returns results only when the terms on both sides of the\noperator are true.\n\nA search for multiple terms uses `AND` implicitly. For example, the following\nsearch returns Python files that contain the term `server`: \n\n server lang:python\n\nAlternatively, you can supply the AND operator explicitly. For example: \n\n server AND lang:python"]]