To enable search of the publicly available content in your portal, you can create a dedicated search page where you embed a Google Custom Search Engine (CSE). For example, the portal shown in the following figure, embeds a Google CSE that enables searching the content indexed by Google.
Create a Google custom search engine:
a. Navigate to the Google custom search configuration page.
b. Click Add to create a new custom search engine.
c. Configure your custom search engine and identify the portal site domain. See Create a search engine in the Google Custom Search Help.
d. Expedite site indexing by verifying and submitting your site using Google Search Console. See Verify your site in Search console in the Google Custom Search Help.
Add the custom search element ID (search-box) defined in your custom script at the location that you want the Google search box to appear.
For example:
<div id="search-box"></div>
Add the search page to your portal navigation, as required. See Set up navigation for more information.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-10 UTC."],[[["This content pertains to setting up a search function within Apigee and Apigee hybrid portals using Google Custom Search Engine (CSE)."],["Google CSE can only return results for content that is publicly accessible, without requiring user sign-in, and ads cannot be disabled unless you're an approved non-profit."],["Creating a custom search page involves publishing portal content, setting up the search engine through Google's configuration page, adding a custom script to your portal, and integrating the search box into your portal pages."],["Implementing a Google Custom Search Engine requires setting the `cx` variable to your Google search engine ID, and the `path` value to your search page URL in the provided script."],["After publication, it may take several days or even up to a month before Google fully indexes your site's content, so it is advised to test over time and potentially delay publishing the search page."]]],[]]