จัดการการแก้ไขหลังจากที่ลบด้วยตัวเอง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เมื่อ Cloud Search ได้รับคำขอลบรายการ ระบบจะไม่นำรายการทั้งหมดออกทันที
แต่ Cloud Search จะลบแบบไม่ถาวรโดยการทำเครื่องหมาย
รายการว่าถูกลบและนำข้อมูลรายการบางส่วนออก เช่น ACL, เนื้อหา, ข้อมูลที่มีโครงสร้าง และข้อมูลเมตา ระบบจะเก็บข้อมูลอื่นๆ ไว้ เช่น เวอร์ชันของรายการ
หากคำขอจัดทำดัชนีใหม่ระบุเวอร์ชันที่สูงกว่าค่าที่มีอยู่
การจัดทำดัชนีใหม่ของรายการขณะที่อยู่ในสถานะลบแบบไม่สมบูรณ์จะกู้คืนรายการ
ระบบจะทำเครื่องหมายว่ารายการถูกลบเป็นเวลา 7-10 วัน หลังจากนั้น Cloud Search จะลบอย่างถาวรเพื่อลบรายการอย่างถาวร รายการจะไม่มีอยู่อีกต่อไปและ
หมายเลขเวอร์ชันของรายการจะไม่ใช่รายการนั้นอีกต่อไป
รักษาเวอร์ชันของสินค้าให้สอดคล้องกัน
ตัวเชื่อมต่อเนื้อหาควรจัดการการกำหนดเวอร์ชันของรายการ
อย่างไรก็ตาม หากลบรายการนอกตรรกะของตัวเชื่อมต่อโดยใช้
items.delete
คุณต้องทำอย่างใดอย่างหนึ่งต่อไปนี้เพื่อให้การจัดทำดัชนีใหม่สำเร็จ
- จัดทำดัชนีเนื้อหาอีกครั้งหลังจากลบจริง (7-10 วัน)
- เมื่อลบรายการด้วยตนเอง ให้ใช้เวอร์ชันของรายการจริง ซึ่งคุณจะรับได้โดยการเรียกใช้ items.get แทนสตริงแบบสุ่ม เช่น "ไม่มี"
หากคุณไม่ทำตามคำแนะนำใดคำแนะนำหนึ่งเหล่านี้ ข้อผิดพลาดจะเกิดขึ้นระหว่างการจัดทำดัชนี
และการจัดทำดัชนีจะล้มเหลว
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[],[],null,["# Handle revisions after manual deletes\n\nWhen the Cloud Search gets a delete item request, it doesn't immediately remove\nthe entire item. Instead, Cloud Search performs a *soft delete* by marking the\nitem as deleted and removing a subset of item information, such as the ACLs,\ncontent, structured data, and metadata. Other information, such as the item\nversion, is retained.\n\nIf a re-indexing request provides a version greater than the existing value,\nre-indexing that item while it is in a soft delete state restores the item.\n\nAn item is marked as deleted for 7-10 days after which Cloud Search performs\na *hard delete* to permanently delete the item. The item ceases to exist and\nits version number no longer refers to that specific item.\n\nMaintain consistent item versions\n---------------------------------\n\nYour content connector should handle versioning of items.\nHowever, if you delete an item outside of your connector logic using\n[items.delete](/workspace/cloud-search/docs/reference/rest/v1/indexing.datasources.items/delete)\nyou must do one of the following to ensure reindexing can be successful:\n\n- Reindex your content *after* the hard delete (7-10 days).\n- When manually deleting an item, use the actual item version, which you can obtain by calling [items.get](/workspace/cloud-search/docs/reference/rest/v1/indexing.datasources.items/get) , instead of a random string, such as \"None.\".\n\nIf you don't follow one of these suggestions, an error occurs during indexing\nand indexing fails."]]