טיפול בתיקונים לאחר מחיקה ידנית
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כשמתקבלת ב-Cloud Search בקשה למחיקת פריט, המערכת לא מסירה מיד את כל הפריט. במקום זאת, Cloud Search מבצע מחיקה רכה על ידי סימון הפריט כמחוק והסרה של קבוצת משנה של פרטי הפריט, כמו רשימות ACL, תוכן, נתונים מובנים ומטא-נתונים. מידע אחר, כמו גרסת הפריט, נשמר.
אם בבקשה לאינדוקס מחדש מצוינת גרסה גדולה מהערך הקיים, אינדוקס מחדש של הפריט בזמן שהוא במצב של מחיקה רכה ישחזר את הפריט.
פריט מסומן כמחוק למשך 7-10 ימים, ולאחר מכן Cloud Search מבצע מחיקה סופית כדי למחוק את הפריט באופן סופי. הפריט מפסיק להתקיים ומספר הגרסה שלו כבר לא מתייחס לפריט הספציפי הזה.
שמירה על גרסאות עקביות של פריטים
מחבר התוכן צריך לטפל בניהול הגרסאות של הפריטים.
עם זאת, אם מוחקים פריט מחוץ ללוגיקה של המחבר באמצעות items.delete, צריך לבצע אחת מהפעולות הבאות כדי להבטיח שהאינדוקס יתבצע מחדש בהצלחה:
- אחרי המחיקה הסופית (7-10 ימים), צריך ליצור מחדש את האינדקס של התוכן.
- כשמוחקים פריט באופן ידני, צריך להשתמש בגרסה בפועל של הפריט, שאפשר לקבל באמצעות קריאה ל-items.get, ולא במחרוזת אקראית, כמו 'None'.
אם לא תפעלו לפי אחת מההצעות האלה, תתרחש שגיאה במהלך ההוספה לאינדקס וההוספה לאינדקס תיכשל.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]