All search form handler components generally require you to set the following properties:

Property

Description

allowEmptySearch

Determines whether a search proceeds or throws an error when no search criteria are specified. The default value is true.

allowRefine

Determines whether search criteria include previously entered criteria. See Clearing Search Query Data for details. The default value is false.

enableCountQuery

Determines whether the Oracle Commerce Platform numbers the items located by a search. See Search Results Properties for an explanation of related properties. The default value is false.

errorURL

URL that opens when a search fails. Set this property to the URL of a page that describes the error and provides tools for starting another search.

itemTypes

An array of item types to include in the search. Each item type must be defined in all repositories specified in the repositories property.

previouslySubmitted

Tracks whether a query that uses this SearchFormHandler occurred during the current session. When a search begins, this property is set to true.

repositories

A comma-delimited list of repositories to include in the search.

successURL

URL that opens when a search operation succeeds. This property should point to the URL for the first search results page.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices