Zarezerwowane i popularne operatory wyszukiwania
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
W tym dokumencie znajdziesz listę zarezerwowanych i popularnych operatorów wyszukiwania dostępnych w Google Cloud Search. Zarezerwowane operatory mają zastosowanie tylko w Google Cloud Search i nie można ich używać w schemacie. Operatory powszechne są wspólne dla innych aplikacji Google Workspace, takich jak Gmail, ale można ich używać w schemacie.
Zachowaj ostrożność podczas używania typowych operatorów, ponieważ użytkownicy, którzy znają ich zastosowanie w innych aplikacjach, mogą być zdezorientowani odmiennym wdrożeniem w Cloud Search.
Operatory zarezerwowane
W schemacie nie możesz używać żadnego z tych operatorów:
Operator |
Definicja |
source |
Wyszukiwanie treści z określonej usługi lub źródła danych |
site |
Wyszukuje treść z określonej witryny. |
inurl |
Wyszukuje treść z określonego adresu URL. |
contenttype |
Wyszukiwana jest treść określonego typu (np. dokumenty, arkusze kalkulacyjne, prezentacje, obrazy, foldery lub załączniki). |
mimetype |
Wyszukuje treść według oryginalnego typu MIME. |
type |
Wyszukiwana jest treść określonego typu (np. dokumenty, arkusze kalkulacyjne, prezentacje, obrazy, foldery lub załączniki). |
owner |
Wyszukiwanie obejmuje treść, która należy do Ciebie lub została Ci udostępniona. W przypadku treści pochodzących z repozytoriów innych firm jedyną prawidłową wartością jest owner:me . W przypadku treści Google Workspace możesz też użyć zapytania owner:identity, gdzie identity może być imieniem i nazwiskiem, nazwą użytkownika lub adresem e-mail właściciela. |
from |
Wyszukuje treść od określonej osoby, która ją wysłała lub utworzyła. Ten operator jest używany jako alias dla owner . |
before |
Wyszukuje treść zmodyfikowaną przed określoną datą mającą format RRRR/MM/DD. |
after |
Wyszukuje treść zmodyfikowaną w określonej lub późniejszej dacie mającej format RRRR/MM/DD. |
createddatetimestampbefore |
Wyszukuje treść utworzoną przed określoną datą mającą format RRRR/MM/DD. |
createddatetimestampafter |
Wyszukuje treść utworzoną w określonej lub późniejszej dacie mającej format RRRR/MM/DD. |
itemsize |
Wyszukuje treść o określonym rozmiarze wyrażonym w bajtach. |
itemsizelessthan |
Wyszukuje treść o rozmiarze mniejszym niż określony rozmiar wyrażony w bajtach. |
itemsizegreaterthan |
Wyszukuje treść o rozmiarze większym lub równym określonemu rozmiarowi wyrażonemu w bajtach. |
in |
Użycie tego operatora nie zostało określone. |
is |
Użycie tego operatora nie zostało określone. |
has |
Użycie tego operatora nie zostało określone. |
to |
Użycie tego operatora nie zostało określone. |
Ostatnie 4 operatory w tabeli są zarezerwowane, ale nie mają jeszcze konkretnej definicji.
Informacje o tym, jak użytkownicy korzystają z konkretnego operatora, znajdziesz w artykule Zawężanie wyszukiwania.
Typowe operatory
W schemacie możesz zadeklarować te operatory: Aby zminimalizować dezorientację użytkowników, zadeklaruj te operatory tak, aby ich użycie było zgodne z definicją w tabeli poniżej.
Operator |
Używane przez |
Definicja |
size |
Gmail |
Wyszukuje elementy o rozmiarze większym niż podany rozmiar w bajtach. |
larger |
Gmail |
Wyszukuje elementy o rozmiarze większym niż podany rozmiar w bajtach. Synonim słowa size . |
smaller |
Gmail |
Wyszukuje elementy o rozmiarze mniejszym niż podany rozmiar w bajtach. |
older_than |
Gmail |
Znajdź elementy starsze niż podana data. |
newer_than |
Gmail |
Znajdź elementy nowsze niż podana data. |
subject |
Gmail |
Znajdź elementy o określonym temacie lub tytule. |
label |
Gmail |
Znajdź elementy z określoną etykietą. |
list |
Gmail |
Znajdź elementy z danej listy adresowej. |
cc |
Gmail |
Znajdź elementy z podanym odbiorcą w polu cc . |
bcc |
Gmail |
Znajdź elementy z podanym odbiorcą w polu bcc . |
deliveredto |
Gmail |
Znajdź elementy dostarczone na podany adres e-mail. |
category |
Gmail |
Znajdź elementy z danej kategorii. |
title |
Dysk |
Dopasowuje element o podanym tytule. |
app |
Dysk |
Wyszukiwanie elementów, które można otworzyć tylko w podanej aplikacji. |
mailthreadid |
Gmail |
Dopasowuje elementy o podanym identyfikatorze wątku. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-29 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]