Create a Custom Google Search Engine | Guide

Creating a Custom Google Search Engine
Do you wish to establish a tailored Google search experience, focused exclusively on designated websites? This is readily achievable through Google's Custom Search Engine functionality.
The search engine you design can be saved for future use and conveniently shared with others.
How it Differs from the 'site:' Operator
This method functions in a comparable manner to utilizing Google’s site: operator. However, it eliminates the necessity of repeatedly entering the operator with each search query.
It proves especially beneficial when conducting searches across an extensive collection of websites simultaneously.
Benefits of a Custom Search Engine
- Convenience: Avoid repeatedly typing
site:for each search. - Efficiency: Quickly search multiple websites with a single query.
- Shareability: Easily distribute your custom search engine to colleagues or the public.
By leveraging Google’s Custom Search Engine tool, you can refine your online research and focus on the sources that matter most to you.
Building a Personalized Search Engine
The process begins by navigating to the Google Custom Search Engine website and selecting the "Create a custom search engine" option. A valid Google account is required, as the engine’s configuration will be linked to it.

A name and descriptive text should be provided for your new search engine; these fields are customizable to your preference.

The crucial element is the "Sites to search" field. This is where you define the specific websites to be included in your search scope. For instance, to search both howtogeek.com and microsoft.com, you would input:
howtogeek.com/*
microsoft.com/*
The asterisk (*) serves as a wildcard, effectively matching all content within those domains. Therefore, the notation /* instructs the engine to index the entirety of each specified website.
More sophisticated configurations are possible within this section, which will be explored further shortly.

Clicking "Next" allows you to customize the appearance of your search results and to test the functionality of the newly created engine.

Upon satisfaction with your search engine’s settings, proceed by clicking the "Next" button. This will direct you to a page containing embed code for integration into a website.
If you are not a web developer, this code can be disregarded. Instead, navigate back to the main Custom Search Engine page by clicking the Google Custom Search logo located at the top.

Access your search engine’s dedicated page by selecting its name from the list of your created search engines.

This page can be bookmarked for convenient future access. Furthermore, the unique URL displayed in your browser’s address bar can be shared with others to grant them access to your custom search engine.

Refining Search Results with URL Specifications
When establishing a custom search engine, it isn't necessary to designate an entire website. Instead, focused parameters can be implemented.
Consider the previously created custom search engine targeting microsoft.com. A test search might reveal valuable data originating from windows.microsoft.com and support.microsoft.com. However, results from answers.microsoft.com, Microsoft’s community forum, could prove less relevant.

To exclude the forum and prioritize the other subdomains, the following URL list could be utilized during search engine creation:
howtogeek.com/*
windows.microsoft.com/*
support.microsoft.com/*
It’s important to note that specific subdomains can only be included, not explicitly excluded. This configuration will limit the search to the designated subdomains within microsoft.com.

Several distinct URL types can be defined within this list to refine search parameters.
- Individual Pages: A single, specific page can be included by entering its complete URL, such as example.com/page.html.
- Website Sections: The * character offers further flexibility. For instance, support.microsoft.com/kb/* will focus the search exclusively on Microsoft Knowledge Base articles. Alternatively, example.com/*word* will locate all pages on example.com containing word within their URL structure.
The search engine can be iteratively improved by returning to the initial step, adjusting the URLs, and conducting further test searches until optimal results are achieved.

Upon completion, the custom search engine can be integrated directly into a browser’s search bar for convenient access.