La façon la plus simple de se familiariser avec Programmable Search Engine est de créer un moteur de recherche basique à l'aide du panneau de configuration. Vous pouvez ensuite télécharger les fichiers XML du moteur et les modifier pour les personnaliser davantage.
Puisque vous êtes en train de tester et d'appréhender certains concepts de base, prenez quelques minutes pour créer votre premier moteur de recherche. Faites simple afin de pouvoir suivre ce qui se passe lorsque vous commencez à le tester. Vous pourrez la modifier par la suite.
Définir un moteur Programmable Search Engine dans le panneau de configuration
Dans la section Nom du moteur de recherche, spécifiez le nom de votre moteur de recherche. Vous pouvez modifier ce nom à tout moment.
Dans la section Que rechercher ?, ajoutez les pages que vous souhaitez inclure dans votre moteur de recherche. Vous pouvez inclure tous les sites de votre choix, et pas seulement les sites dont vous êtes le propriétaire. Vous pouvez inclure des URL de pages entières ou de pages individuelles. Vous pouvez également utiliser des formats d'URL.
Cliquez sur Créer.
Votre moteur de recherche de base est prêt ! Pour voir d'autres options de configuration, accédez au panneau de configuration.
Pour en savoir plus sur les options disponibles dans le panneau de configuration, consultez le Centre d'aide Programmable Search Engine. Pour ajouter des options avancées (par exemple, filtrer ou trier les résultats) et personnaliser davantage votre moteur de recherche à l'aide de fichiers de configuration XML, consultez le guide du développeur.
Utiliser le moteur
Une fois que vous avez défini votre moteur de recherche, vous pouvez y accéder de deux manières:
Page d'accueil Programmable Search Engine hébergée par Google : vous pouvez trouver l'URL publique de la page d'accueil de votre moteur dans la section Basic de la page Présentation et la partager avec vos utilisateurs.
Un champ de recherche sur votre site Web : si vous intégrez un champ de recherche dans votre page Web, vos utilisateurs peuvent effectuer des recherches à partir de votre site Web.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\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)."]]