プログラム可能検索エンジンの作成
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
プログラム可能検索エンジンを作成するには、次の 2 つの方法があります。
プログラム可能検索エンジンを開始する最も簡単な方法は、コントロール パネルを使用して基本検索エンジンを作成することです。その後、エンジンの XML ファイルをダウンロードし、変更してさらにカスタマイズします。今はまだ基本的なコンセプトを試して理解しているので、ほんの数分で最初の検索エンジンを作成します。テストの開始時に状況を把握できるよう、シンプルにしてください。設定は後からいつでも変更できます。
コントロール パネルでプログラム可能検索エンジンを定義する
プログラム可能検索エンジンを作成するには:
- Google アカウントを使用してコントロール パネルにログインします(アカウントをお持ちでない場合は、アカウントを作成します)。
- [検索エンジンに名前を付ける] セクションで、検索エンジンの名前を指定します。この名前はいつでも変更できます。
- [検索の対象] セクションで、検索エンジンに含めるページを追加します。所有しているサイトだけでなく、任意のサイトを指定できます。サイト全体または個々のページの URL を指定できます。URL パターンを使用することもできます。
- [作成] をクリックします。
基本の検索エンジンを使用できるようになりました。その他の設定オプションを確認するには、コントロール パネルに移動してください。
コントロール パネルで利用できるオプションについて詳しくは、プログラム可能検索エンジンのヘルプセンターをご覧ください。詳細設定(フィルタリングや検索結果の表示順序など)を追加したり、XML 構成ファイルを使って検索エンジンをさらにカスタマイズしたりするには、デベロッパー ガイドをご覧ください。
エンジンの使用
検索エンジンを定義したら、次の 2 つの方法で検索エンジンにアクセスできます。
- Google がホストするプログラム可能検索エンジンのホームページ - エンジンのホームページの公開 URL は、[概要] ページの [基本] セクションで確認でき、ユーザーと共有することができます。
- ウェブサイトの検索ボックス - ウェブページに検索ボックスを埋め込んでおくと、ユーザーはウェブサイトから検索できるようになります。
次のステップ
検索ボックスの導入に進みます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 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)."]]