OR 演算子を使用する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
OR
演算子を使用すると、キーワードの左右に指定された式のいずれかに一致する結果が返されます。たとえば、次の検索では用語 hello
または world
が含まれるファイルが返されます。
hello OR world
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003eOR\u003c/code\u003e operator helps you find results matching either of the expressions it connects.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eOR\u003c/code\u003e broadens your search by including results containing either term.\u003c/p\u003e\n"],["\u003cp\u003eExample: \u003ccode\u003ehello OR world\u003c/code\u003e finds files containing either "hello" or "world".\u003c/p\u003e\n"]]],[],null,["# Using the OR operator\n\nThe [`OR`](../reference#operators) operator returns a result if it matches an\nexpression on either side of the keyword. For example, the following search\nreturns files that contain the term `hello` or the term `world`. \n\n hello OR world"]]