Creating a custom search page Stay organized with collections Save and categorize content based on your preferences.
This pageapplies toApigee andApigee hybrid.
View Apigee Edge documentation.![]()
To enable search of the publicly available content in your portal, you can create a dedicated search page where you embed aGoogle Custom Search Engine (CSE).




- Search using a Google CSE can return only results forpublicly available content. In other words, a portal user must not be required to sign in to the portal to view the content.
- At this time, you cannot disable ads in search results unless you are an approved non-profit site.
- Google CSE is not included with an Apigee license. (An out-of-the-box search solution in the integrated portal is planned for a future release.)
- TheGoogle Search Console (also not included with an Apigee license) is another tool you may use to remove or manage your portal's presence in Google's search index.
To create a custom search page:
- Publish your portal content.
Create a Google custom search engine:
- Navigate to theGoogle custom search configuration page.
- ClickAdd to create a new custom search engine.
- Configure your custom search engine and identify the portal site domain.SeeCreate a search engine in the Google CustomSearch Help. The custom search configuration returns something likethe following:
Where<script async src="https://cse.google.com/cse.js?cx=e13bcb52d46f04dfd"></script><div></div>
cx=e13bcb52d46f04dfdis the Google search engine ID.
Add the following custom script to your portal. SeeAdding custom scripts.
Set the
cxvariable to your Google search engine ID, for examplee13bcb52d46f04dfd, and thepathvalue to your search page URL,for example,/search.<script>window.portal={pageEventListeners:{onLoad:(path)=>{//UpdatewithyoursearchpageURLif(path==='/your-search-page-URL'){//AddyourGooglesearchengineIDvarcx='your-search-engine-id';vargcse=document.createElement('script');gcse.type='text/javascript';gcse.async=true;gcse.src='https://cse.google.com/cse.js?cx='+cx;vars=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(gcse,s);gcse.onload=function(){varsearch=document.createElement('gcse:search');//NotetheelementIDnamevarsearchBox=document.getElementById('search-box');searchBox.appendChild(search);};}}}};</script>Create a new search page in your portal and customize it as described inManage pages in your portal.
Add the custom search element ID (
search-box) defined in your customscript 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 described inSet up navigation.
Publish your search page and navigation updates.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.