การสร้าง Programmable Search Engine
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การสร้าง Programmable Search Engine ทำได้ 2 วิธี ดังนี้
วิธีที่ง่ายที่สุดในการเริ่มต้นใช้งาน Programmable Search Engine คือการสร้างเครื่องมือค้นหาพื้นฐานโดยใช้แผงควบคุม จากนั้น คุณจะดาวน์โหลดไฟล์ XML ของเครื่องมือแล้วแก้ไขเพื่อเพิ่มการปรับแต่งเพิ่มเติมได้
เนื่องจากคุณกำลังทดลองและค้นหาแนวคิดพื้นฐานบางประการ โปรดใช้เวลาเพียงไม่กี่นาทีในการสร้างเครื่องมือค้นหาแรกของคุณ ทำให้เป็นเรื่องง่ายเพื่อให้คุณติดตามสิ่งที่กำลังเกิดขึ้นเมื่อเริ่มทดสอบได้ คุณทำการเปลี่ยนแปลงในภายหลังได้ทุกเมื่อ
การกำหนด Programmable Search Engine ในแผงควบคุม
วิธีสร้าง Programmable Search Engine
- ลงชื่อเข้าใช้ Control Panel โดยใช้บัญชี Google (รับบัญชีหากยังไม่มีบัญชี)
- ในส่วนตั้งชื่อเครื่องมือค้นหาของคุณ ให้ระบุชื่อเครื่องมือค้นหา คุณสามารถเปลี่ยนชื่อนี้ได้ทุกเมื่อ
- ในส่วนสิ่งที่ต้องการค้นหา ให้เพิ่มหน้าที่คุณต้องการรวมไว้ในเครื่องมือค้นหา คุณสามารถรวมเว็บไซต์ใดก็ได้ที่ต้องการ ไม่ใช่เฉพาะเว็บไซต์ที่คุณเป็นเจ้าของ คุณจะใส่ URL ทั้งเว็บไซต์หรือเฉพาะ URL ของหน้าเว็บแต่ละหน้าก็ได้ หรือจะใช้รูปแบบ URL ก็ได้
- คลิกสร้าง
เครื่องมือค้นหาพื้นฐานของคุณพร้อมใช้งานแล้ว หากต้องการดูตัวเลือกการกำหนดค่าเพิ่มเติม ให้ไปที่แผงควบคุม
หากต้องการดูข้อมูลเพิ่มเติมเกี่ยวกับตัวเลือกที่มีในแผงควบคุม ให้ไปที่ศูนย์ช่วยเหลือของ Programmable Search Engine หากต้องการเพิ่มตัวเลือกขั้นสูง (เช่น การกรองหรือลำดับผลการค้นหา) และปรับแต่งเครื่องมือค้นหาเพิ่มเติมผ่านไฟล์การกำหนดค่า XML โปรดดูที่คู่มือนักพัฒนาซอฟต์แวร์
การใช้เครื่องมือ
เมื่อกำหนดเครื่องมือค้นหาแล้ว คุณจะเข้าถึงเครื่องมือค้นหาได้ 2 วิธี ดังนี้
- หน้าแรกของ Programmable Search Engine ที่โฮสต์โดย 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)."]]