โอเปอเรเตอร์การค้นหาที่สงวนไว้และค้นหาทั่วไป
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เอกสารนี้แสดงรายการโอเปอเรเตอร์การค้นหาที่สงวนไว้และที่ใช้กันทั่วไปซึ่งมีอยู่ใน
Google Cloud Search โอเปอเรเตอร์ที่สงวนไว้มีไว้สำหรับใช้กับ Google Cloud Search โดยเฉพาะ
และไม่สามารถใช้ในสคีมาได้ โอเปอเรเตอร์ทั่วไปใช้ได้กับแอป Google Workspace อื่นๆ เช่น Gmail แต่สามารถใช้ในสคีมาได้
โปรดระมัดระวังเมื่อใช้ตัวดำเนินการทั่วไป เนื่องจากผู้ใช้ที่คุ้นเคยกับการใช้ตัวดำเนินการดังกล่าวในแอปอื่นๆ อาจสับสนกับการใช้งานที่แตกต่างกันใน Cloud Search
โอเปอเรเตอร์ที่สงวนไว้
คุณไม่สามารถใช้อักขระตัวดำเนินการต่อไปนี้ในสคีมา
โอเปอเรเตอร์ |
คำจำกัดความ |
source |
ค้นหาเนื้อหาจากผลิตภัณฑ์หรือแหล่งข้อมูลที่เฉพาะเจาะจง |
site |
ค้นหาเนื้อหาจากเว็บไซต์ที่เฉพาะเจาะจง |
inurl |
ค้นหาเนื้อหาจาก URL ที่เฉพาะเจาะจง |
contenttype |
ค้นหาเนื้อหาบางประเภท เช่น เอกสาร สเปรดชีต งานนำเสนอ รูปภาพ โฟลเดอร์ และไฟล์แนบ |
mimetype |
ค้นหาเนื้อหาตาม Mimetype เดิม |
type |
ค้นหาเนื้อหาบางประเภท เช่น เอกสาร สเปรดชีต งานนำเสนอ รูปภาพ โฟลเดอร์ และไฟล์แนบ |
owner |
ค้นหาเนื้อหาที่คุณเป็นเจ้าของหรือที่แชร์กับคุณ สำหรับเนื้อหาที่มาจากที่เก็บของบุคคลที่สาม ค่าที่ถูกต้องเพียงค่าเดียวคือ owner:me สำหรับเนื้อหา Google Workspace คุณยังใช้ owner:identity ได้ด้วย โดย identity อาจเป็นชื่อผู้ใช้ ชื่อ หรืออีเมลของผู้เป็นเจ้าของ |
from |
ค้นหาเนื้อหาจากบุคคลที่เฉพาะเจาะจงซึ่งส่งหรือสร้างเนื้อหา โอเปอเรเตอร์นี้ใช้เป็นชื่อแทนสำหรับ owner |
before |
ค้นหาเนื้อหาที่แก้ไขก่อนวันที่กำหนด โดยใช้รูปแบบ ปปปป/ดด/วว |
after |
ค้นหาเนื้อหาที่แก้ไขในหรือหลังจากวันที่กำหนด โดยใช้รูปแบบ ปปปป/ดด/วว |
createddatetimestampbefore |
ค้นหาเนื้อหาที่สร้างก่อนวันที่ที่กำหนด โดยใช้รูปแบบ ปปปป/ดด/วว |
createddatetimestampafter |
ค้นหาเนื้อหาที่สร้างในหรือหลังจากวันที่กำหนด โดยใช้รูปแบบ ปปปป/ดด/วว |
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 |
ตรงกับรายการที่มีรหัสชุดข้อความที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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. |"]]