إنشاء محرك بحث قابل للبرمجة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
هناك طريقتان لإنشاء "محرك البحث المبرمَج":
إنّ أسهل طريقة لبدء استخدام "محرك البحث المبرمَج" هي إنشاء محرك بحث أساسي باستخدام لوحة التحكم. ويمكنك بعد ذلك تنزيل ملفات XML الخاصة بالمحرك وتعديلها لإضافة المزيد من التخصيصات.
بما أنك تجري التجارب وتكتشف بعض المفاهيم الأساسية، اقض بضع دقائق فقط في إنشاء أول محرك بحث لك. اجعل الأمر بسيطًا حتى تتمكن من متابعة ما يحدث عند بدء اختباره. ويمكنك دائمًا تغيير ذلك في وقت لاحق.
تحديد محرك البحث المبرمج في لوحة التحكم
لإنشاء محرك بحث مبرمج:
- تسجيل الدخول إلى لوحة التحكّم باستخدام حسابك على Google (الحصول على حساب إذا لم يكن لديك حساب)
- في القسم تسمية محرك البحث، حدِّد اسم محرك البحث. يمكنك تغيير هذا الاسم في أي وقت.
- في القسم ما الذي تريد البحث عنه؟، أضِف الصفحات التي تريد تضمينها في
محرك البحث. يمكنك تضمين أي مواقع إلكترونية تريدها، وليس فقط المواقع الإلكترونية التي تملكها. يمكنك تضمين عناوين URL لموقع إلكتروني كامل أو عناوين URL لصفحات فردية. يمكنك أيضًا استخدام
أنماط عناوين URL.
- انقر على إنشاء.
محرك البحث الأساسي جاهز للاستخدام! للاطّلاع على المزيد من خيارات الضبط، انتقِل إلى لوحة التحكّم.
لمعرفة المزيد من المعلومات عن الخيارات المتاحة في "لوحة التحكّم"، انتقِل إلى مركز مساعدة "محرك البحث المبرمَج". لإضافة خيارات متقدمة (مثل الفلترة أو ترتيب النتائج) وتخصيص محرك البحث أيضًا عبر ملفات إعداد XML، راجع دليل المطوِّر.
استخدام المحرك
بعد تحديد محرك البحث، يمكن الوصول إليه بطريقتين:
- الصفحة الرئيسية لمحرّك البحث المبرمَج الذي تستضيفه Google: يمكنك العثور على
عنوان URL العلني للصفحة الرئيسية لمحرّكك في القسم نظرة عامة
من صفحة الأساسية ومشاركته مع المستخدمين.
- مربّع بحث في موقعك الإلكتروني: إذا ضمّنت مربّع بحث في صفحة الويب، يمكن للمستخدمين إجراء عمليات بحث من موقعك الإلكتروني.
التالي...
تابع إلى تنفيذ مربّع البحث.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eProgrammable Search Engines can be created through a user-friendly Control Panel or by defining them within an XML file.\u003c/p\u003e\n"],["\u003cp\u003eThe Control Panel offers a simple way to build a basic search engine, allowing you to specify the name, website scope, and included pages.\u003c/p\u003e\n"],["\u003cp\u003eAfter creation, your search engine is accessible via a public URL or by embedding a search box directly into your website.\u003c/p\u003e\n"],["\u003cp\u003eFurther customization, such as filtering and result ordering, can be achieved by modifying the engine's XML configuration files.\u003c/p\u003e\n"]]],[],null,["# Creating a Programmable Search Engine\n\nThere are two ways of creating a Programmable Search Engine:\n\n- using the [Control Panel](https://programmablesearchengine.google.com/controlpanel/create)\n- creating an [XML file](/custom-search/docs/basics) with the definition of the engine\n\nThe easiest way to get started with Programmable Search Engine is to create a basic search engine using the [Control Panel](https://programmablesearchengine.google.com/controlpanel/create). You can then download the engine's XML files and modify them to add further customizations.\nSince you're experimenting and figuring out some basic concepts, spend only a couple of minutes making your first search engine. Keep it simple so that you can follow what's happening when you start testing it. You can always change it later.\n\nDefining a Programmable Search Engine in Control Panel\n------------------------------------------------------\n\nTo create a Programmable Search Engine:\n\n1. Sign into [Control Panel](https://programmablesearchengine.google.com/controlpanel/create) using your Google Account ([get an account](https://www.google.com/accounts/NewAccount) if you don't have one).\n2. In the **Name your search engine** section, specify your search engine's name. You can change this name at any time.\n3. In the **What to search?** section, add the pages you want to include in your search engine. You can include any sites you want, not just the sites you own. You can include whole site URLs or individual pages URLs. You can also use [URL patterns](https://support.google.com/programmable-search/answer/12397162).\n4. Click **Create**.\n\nYour basic search engine is ready to use! To see more configuration options, go to the [Control Panel](https://programmablesearchengine.google.com/controlpanel/all).\n\nTo learn more about options available in Control Panel, visit the [Programmable Search Engine Help Center](http://support.google.com/programmable-search/). To add advanced options (e.g. filtering or results order) and further customize your search engine via XML configuration files, see the [Developer Guide](/custom-search/docs/basics#steps).\n\nUsing the engine\n----------------\n\nOnce you have defined your search engine, it can be accessed in two ways:\n\n- Google-hosted Programmable Search Engine homepage - you can find the **Public URL** for your engine homepage in the **Overview** page's **Basic** section and share it with your users.\n- A search box in your website - If you embed a search box in your webpage, your users can make searches from your website.\n\nNext...\n-------\n\nContinue to [Implementing search box](/custom-search/docs/tutorial/implementingsearchbox)."]]