Restricting portal content from a custom search

Using the Custom Search portlet, you can restrict the portal content that can is included in a search. Users may not override the restrictions you define.

For example, you can create a portlet that allows users to search for items only, in one specific page group.

NoteYou must be the administrator, a page builder or have the appropriate privileges to edit the default settings of the Custom Search portlet.

To restrict portal content from a custom search:

  1. Navigate to the page that contains the Custom Search portlet.

  2. Click Edit Page to switch to Edit mode.

  3. Click (Actions) beside the portlet.

  4. Click Edit Defaults.

    Note: All the options for the Custom Search portlet are described in the online Help. Click to display context sensitive Help for a particular screen.

  5. Click the What to Search tab to choose which page groups and content type to include in the search:

    1. For What type of content should be searched?, restrict the search to items, pages, categories or perspectives. Alternatively, allow any of these.

      If the results are to be displayed in a different portlet and the search results portlet is set up to display a particular type of content, it overrides the content type selected in the search form portlet. The user can search for the type selected on results portlet only.

    2. For Which page groups should be searched?, restrict the search to one or more page groups. Make sure only these page groups appear in the Page Groups to Search list.

  6. Click the Search Form tab:

    1. Select Choose a page group to search, to allow the user to further restrict which page groups are searched.

      The list of available page groups that are displayed when the user clicks the Browse icon, are those selected on the What to Search tab. If you want the user to always search in all the page groups you have selected, do not select this option.

    2. Select Choose type of content to search to allow the user to restrict the search to items, categories, perspectives, or pages.

      Note: For this option to take affect, the custom search portlet setting What type of content should be searched? must be set to Any, on the What to Search tab. If it is not, only search results of the chosen content type are returned. The user is not given the option to choose a content type.

  7. Click OK.

    The custom search portlet displayed, only returns search items from the portal content you have defined.

Related topics

Setting up the search feature
Interpreting search results
Performing a basic search
Performing an advanced search
Using the custom search portlet
Creating a custom search form
Creating a custom search result page
Setting search criteria for a custom search
Create a portlet that executes a predefined search query
Saving a search
Re-using a saved search
Adding a list of your saved searches to a page
Setting up Oracle Text searching