התאמה אישית של קטעי מידע על תוצאות
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בדף הזה מוסבר איך להתאים אישית את קטעי הקוד של התוצאות לאתר שלכם. כדי לעבד את קטעי הטקסט המותאמים אישית, עליכם להוסיף נתונים מובְנים לדפי האינטרנט.
- סקירה כללית
- יצירת Rich Snippets באמצעות רכיב Programmable Search Element
- גילוי תכונות אחרות
סקירה כללית
Programmable Search Engine עוזר למשתמשים למצוא את הדף הנכון על ידי הצגת קטע טקסט – דגימת תוכן קטנה שמספקת למשתמשי החיפוש מושג לגבי התוכן שמופיע בדף האינטרנט. למידע נוסף על קטעי טקסט, ניתן לעיין בפוסט בבלוג של המרכז למנהלי אתרים שעוסק באנטומיה של תוצאת חיפוש. אם אתם לא אוהבים את קטעי הקוד הרגילים שנוצרו על ידי האלגוריתם של Programmable Search Engine, תוכלו ליצור קטעי קוד משלכם. תוכלו להציג מידע חשוב – כמו תמונות ממוזערות, סיכומים, תאריכים, מחבר התוכן, דירוגים ומחירים – ישירות בקטעי הטקסט שלכם. המידע הרלוונטי ביותר בתוצאות החיפוש הופך את דפי האינטרנט באתר למעניינים יותר עבור המשתמשים.
הנתונים הבאים מדגימים דרכים שונות להתאמה אישית של קטעי הקוד בתוצאות החיפוש.
איור 1: קטע טקסט של תוצאה עם דירוג, טווח מחירים וביקורת.

איור 2: קטע טקסט של תוצאה עם עיצוב, קישורים, תמונה ומידע השוואתי.

איור 3: תקציר של התוצאה שכולל סוגי מסמכים, מחברים, צפיות בדפים ותגובות.

איור 4: קטע קוד של תוצאה בפורמט עשיר המספק גישה למולטימדיה ולחצנים ("ADD TO CART").

חזרה למעלה
יצירת Rich Snippets באמצעות רכיב Programmable Search Element
בעיקרון, יצירת קטעי מידע עשירים כוללת את השלבים הבאים:
- ספק נתונים מובנים בדפי האינטרנט שלך.
כש-Programmable Search Engine מוסיף את דפי האינטרנט לאינדקס, הוא מזהה
ומשמר את המטא-נתונים.
- מאחזרים את הנתונים המובְנים בתוצאות החיפוש עבור Programmable Search Engine.
שרת Programmable Search Engine יכול להחזיר את תוצאות החיפוש, יחד עם הנתונים המובְנים בפורמט JSON.
- יוצרים שכבת מצגת כדי להפוך את הנתונים המובְנים ל-HTML בפורמט.
שכבת מצגת היא קבוצת קוד (למשל JavaScript, PHP, JSP ו-ASP) שמשנה את הנתונים הגולמיים לפורמט שמוצג למשתמש. במקרה של Programmable Search Engine, תוכלו:
מידע מפורט על חילוץ נתונים מובְנים מתועד בדף Structured Data, ויצירת שכבת מצגת באמצעות Programmable Search Element מתועדת בצורה מפורטת יותר בדף
Programmable Search Element.
חזרה למעלה
היכרות עם תכונות אחרות
קטעי קוד בהתאמה אישית פועלים היטב עם כמה תכונות אחרות של Programmable Search Engine:
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eProgrammable Search Engine allows you to customize result snippets to showcase key information like images, summaries, and ratings, making your site's search results more compelling.\u003c/p\u003e\n"],["\u003cp\u003eTo create custom snippets, you need to add structured data to your webpages, which Programmable Search Engine uses to generate rich snippets.\u003c/p\u003e\n"],["\u003cp\u003eThe Programmable Search Element can be utilized to easily transform the structured data into formatted HTML for display in search results.\u003c/p\u003e\n"],["\u003cp\u003eYou can further enhance your search results by exploring features like Drilling Deeper into Search Results and Providing Structured Data.\u003c/p\u003e\n"]]],[],null,["# Customizing Results Snippets\n\nThis page describes how to customize the result snippets for your own website. To render your customized snippets, you must add structured data to your webpages.\n\n1. [Overview](#overview)\n2. [Creating Rich Snippets with the Programmable Search Element](#creating_snippets)\n3. [Exploring Other Features](#next)\n\nOverview\n--------\n\nProgrammable Search Engine helps users find the right page by showing them a snippet---a small sample of content that gives search users an idea of what's in the webpage. To learn more about snippets, see the Webmaster Central [blog post](http://googlewebmastercentral.blogspot.com/2007/11/anatomy-of-search-result.html) on the anatomy of a search result. If you do not like the standard snippets created by the Programmable Search Engine algorithm, you can create your own snippets. You can showcase key information---such as image thumbnails, summaries, dates, authorship, ratings, and prices---directly in your snippets. Having the most relevant information in your search results makes the webpages in your site more compelling to your users.\n\nThe following figures demonstrate various ways you can customize the snippets in your search results.\n\n**Figure 1:** Result snippet with rating, price range, and review.\n\n**Figure 2:** Result snippet with formatting, links, image, and comparative information.\n\n**Figure 3:** Result snippet that includes document types, authors, page views, and comments.\n\n**Figure 4:** Richly formatted result snippet that provides multimedia access and buttons (\"ADD TO CART\").\n\n[Back to top](#top)\n\nCreating Rich Snippets with the Programmable Search Element\n-----------------------------------------------------------\n\nEssentially, creating rich snippets involves the following steps:\n\n1. Provide [structured data](/custom-search/docs/structured_data) in your webpages.\n\n When Programmable Search Engine is indexing your webpages, it recognizes and preserves\n the metadata.\n2. Fetch that structured data in the search results for your Programmable Search Engine. The Programmable Search Engine server can return the search results, along with the\n structured data in JSON format.\n\n3. Create a presentation layer to transform the structured data into formatted HTML. A presentation layer is a set of code (such as JavaScript, PHP,\n JSP and ASP) that transforms the raw data into a format that is displayed\n to the user. In the case of Programmable Search Engine, you can:\n\n - Use the [Programmable Search Element](/custom-search/docs/element) to transform JSON output for presentation to the user.\n - Write your own custom presentation layer that transforms JSON data to HTML that is presented to the end user using Search Element [Callbacks](/custom-search/docs/element#search-time-callbacks)\n\n\nStructured data extraction is documented in more detail in the\n[Structured Data](/custom-search/docs/structured_data) page, and creating a presentation\nlayer with the Programmable Search Element is documented in more detail at the\n[Programmable Search Element](https://developers.google.com/custom-search/docs/element) page.\n\n[Back to top](#top)\n\nExploring Other Features\n------------------------\n\n\nCustom Snippets works well with several other Programmable Search Engine features:\n\n- If you want to learn more about changing the order of your results, see [Drilling Deeper into Search Results](/custom-search/docs/structured_search).\n- If you want to learn more about what structured data Google supports, see [Providing Structured Data](/custom-search/docs/structured_data).\n- If you want to learn more about the Programmable Search Element, see [Programmable Search Element documentation](https://developers.google.com/custom-search/docs/element)."]]