Create a custom search page

To enable app developers to search the content in your portal, you can create a custom search page and embed a Google custom search engine. For example, the portal shown in the following figure, embeds a Google custom search engine to enable you to search the content.


To create a custom search page:

  1. Publish your portal content.
  2. 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 WebMaster tools. See Verify your site in Webmaster tools in the Google Custom Search Help.

  3. Create a new search page in your portal and customize it as desired. See Manage pages in your portal.

  4. Embed the custom search engine code in the new search page. For complete details, see Add custom search to your site in the Google Custom Search Help.
    For example:

     <div class="search-area">
          (function() {
          var cx = '00000000000000:xxxxxxxxxxx7g';
          var gcse = document.createElement('script');
          gcse.type = 'text/javascript';
          gcse.async = true;
          gcse.src = '' + cx;
          var s = document.getElementsByTagName('script')[0];
          s.parentNode.insertBefore(gcse, s);
  5. Add the search page to your portal navigation, as required. See Set up navigation for more information.

  6. Publish your search page and navigation updates.