予約済みの検索演算子と一般的な検索演算子
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このドキュメントでは、Google Cloud Search で使用できる予約済み検索演算子と一般的な検索演算子について説明します。予約済み演算子は Google Cloud Search 固有の用途があり、スキーマでは使用できません。共通演算子は、Gmail などの他の Google Workspace アプリと共通ですが、スキーマで使用できます。一般的な演算子を使用する場合は注意が必要です。他のアプリでの使用に慣れているユーザーは、Cloud Search での実装が異なることに戸惑う可能性があります。
予約済みの演算子
スキーマでは、次の演算子を使用できません。
演算子 |
定義 |
source |
特定のプロダクトまたはデータソースのコンテンツを検索する |
site |
特定のサイトのコンテンツを検索します。 |
inurl |
特定の URL のコンテンツを検索します。 |
contenttype |
ドキュメント、スプレッドシート、プレゼンテーション、画像、フォルダ、添付ファイルなど、特定の種類のコンテンツを検索します。 |
mimetype |
元の mimetype に基づいてコンテンツを検索します。 |
type |
ドキュメント、スプレッドシート、プレゼンテーション、画像、フォルダ、添付ファイルなど、特定の種類のコンテンツを検索します。 |
owner |
自分がオーナーであるコンテンツ、または指定したオーナーが自分と共有しているコンテンツを検索します。サードパーティ リポジトリから取得したコンテンツの場合、有効な値は owner:me のみです。Google Workspace コンテンツの場合は、owner:identity を使用することもできます。ここで、identity はオーナーの名前、ユーザー名、メールアドレスです。 |
from |
特定の送信者または作成者のコンテンツを検索します。この演算子は owner のエイリアスとして使用されます。 |
before |
特定の日付より前に変更されたコンテンツを検索するには、日付形式を YYYY/MM/DD にします。 |
after |
特定の日付以降に変更されたコンテンツを検索するには、日付形式を YYYY/MM/DD にします。 |
createddatetimestampbefore |
特定の日付より前に作成されたコンテンツを検索するには、日付形式を YYYY/MM/DD にします。 |
createddatetimestampafter |
特定の日付以降に作成されたコンテンツを検索するには、YYYY/MM/DD 形式を使用します。 |
itemsize |
特定のサイズ(バイト単位)のコンテンツを検索します。 |
itemsizelessthan |
特定のサイズ(バイト単位)より小さいコンテンツを検索します。 |
itemsizegreaterthan |
特定のサイズ(バイト単位)以上のコンテンツを検索します。 |
in |
この演算子の使用は決定されていません。 |
is |
この演算子の使用は決定されていません。 |
has |
この演算子の使用は決定されていません。 |
to |
この演算子の使用は決定されていません。 |
表の最後の 4 つの演算子は予約されていますが、まだ具体的な定義はありません。
ユーザーが特定の演算子を使用する方法については、検索を絞り込むをご覧ください。
一般的な演算子
スキーマで次の演算子を宣言できます。ユーザーの混乱を最小限に抑えるため、これらの演算子は、次の表の定義と一致するように宣言してください。
演算子 |
使用者 |
定義 |
size |
Gmail |
指定されたサイズ(バイト単位)を超えるアイテムを検索します。 |
larger |
Gmail |
指定されたサイズ(バイト単位)を超えるアイテムを検索します。size と同義。 |
smaller |
Gmail |
指定されたサイズ(バイト単位)より小さいアイテムを検索します。 |
older_than |
Gmail |
指定した日付より古いアイテムを検索します。 |
newer_than |
Gmail |
指定した日付より新しいアイテムを検索します。 |
subject |
Gmail |
特定の件名またはタイトルが付いたアイテムを検索します。 |
label |
Gmail |
指定したラベルが付いたアイテムを検索します。 |
list |
Gmail |
指定したメーリング リストのアイテムを検索します。 |
cc |
Gmail |
指定した受信者が cc フィールドに含まれているアイテムを検索します。 |
bcc |
Gmail |
指定した受信者が bcc フィールドに含まれているアイテムを検索する |
deliveredto |
Gmail |
指定したメールアドレスに配信されたアイテムを検索します。 |
category |
Gmail |
指定したカテゴリのアイテムを検索します。 |
title |
ドライブ |
指定されたタイトルのアイテムと一致します。 |
app |
ドライブ |
特定のアプリで開くことができるファイルを検索します。 |
mailthreadid |
Gmail |
指定されたスレッド ID のアイテムを照合します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-29 UTC。
[null,null,["最終更新日 2025-08-29 UTC。"],[],[],null,["# Reserved and common search operators\n\nThis document lists the *reserved* and common search operators available within\nGoogle Cloud Search. *Reserved* operators have Google Cloud Search-specific\nuse and cannot be used in your schema. *Common* operators are common to\nother Google Workspace apps, such as Gmail, but can be used in your schema.\nBe cautious when using common operators, because users who are familiar with\ntheir use in other apps might be confused by a different implementation in\nCloud Search.\n\nReserved operators\n------------------\n\nYou cannot use any of the following operators in your schema:\n\n| Operator | Definition |\n|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `source` | Find content from a particular product or data source |\n| `site` | Find content from a particular site. |\n| `inurl` | Find content from a particular url. |\n| `contenttype` | Find particular types of content, such as documents, spreadsheets, presentations, images, folders, and attachments. |\n| `mimetype` | Finds content based on the original mimetype. |\n| `type` | Find particular types of content, such as documents, spreadsheets, presentations, images, folders, and attachments. |\n| `owner` | Find content you own or that's been shared with you. For content originating from third party repositories, the only valid value is `owner:me`. For Google Workspace content, you can also use owner:*identity* where *identity* can be the owner's name, username, or email address. |\n| `from` | Find content from a specific person who sent or created the content. This operator is used as an alias for `owner`. |\n| `before` | Find content modified before a certain date, using the format YYYY/MM/DD. |\n| `after` | Find content modified on or after a certain date, using the format YYYY/MM/DD. |\n| `createddatetimestampbefore` | Find content created before a certain date, using the format YYYY/MM/DD. |\n| `createddatetimestampafter` | Find content created on or after a certain date, using the format YYYY/MM/DD. |\n| `itemsize` | Find content with a particular size specified in bytes. |\n| `itemsizelessthan` | Find content less than a particular size specified in bytes. |\n| `itemsizegreaterthan` | Find content greater than or equal to a particular size specified in bytes. |\n| `in` | The use of this operator has not been determined. |\n| `is` | The use of this operator has not been determined. |\n| `has` | The use of this operator has not been determined. |\n| `to` | The use of this operator has not been determined. |\n\nThe last four operators in the table are reserved, but do not yet have a\nspecific definition.\n\nFor information on how users use a specific operator, refer to\n[Narrow your search](https://support.google.com/cloudsearch/answer/6172299).\n\nCommon operators\n----------------\n\nYou may declare the following operators in your schema. To minimize user\nconfusion, declare these operators so their usage is consistent with the\ndefinition in the following table.\n\n| Operator | Used by | Definition |\n|----------------|---------|-------------------------------------------------------------------------|\n| `size` | Gmail | Find items larger than the given size in bytes. |\n| `larger` | Gmail | Find items larger than the given size in bytes. Synonymous with `size`. |\n| `smaller` | Gmail | Find items smaller than a given size in bytes. |\n| `older_than` | Gmail | Find items older than a given date. |\n| `newer_than` | Gmail | Find items newer than a given date. |\n| `subject` | Gmail | Find items with a specific subject or title. |\n| `label` | Gmail | Find items with a given label. |\n| `list` | Gmail | Find items from a given mailing list. |\n| `cc` | Gmail | Find items with the given recipient in the `cc` field. |\n| `bcc` | Gmail | Find items with the given recipient in the `bcc` field |\n| `deliveredto` | Gmail | Find items delivered to the given email address. |\n| `category` | Gmail | Find items with a given category. |\n| `title` | Drive | Matches item with a given title. |\n| `app` | Drive | Search for items that can only be opened by a specific app. |\n| `mailthreadid` | Gmail | Matches items with the given thread ID. |"]]