The SearchFormHandler
class and subclasses such as atg.commerce.catalog.custom.CatalogSearchFormhandler
define several properties that let you constrain search results to repository items that belong to one or more sites:
Property | Description |
---|---|
| Constrains the search to the list of site IDs, returns only items that belong to the specified sites. |
| Constrains the scope of searched sites, set to one of the following values:
|
| A Boolean property, specifies whether to include active sites in the search. By default, only active sites are returned. |
| A Boolean property, specifies whether to include disabled sites in the search. Set this property and |
The siteIds
property has precedence over siteScope
; if the first is set, the second is ignored. The SearchFormHandler
method generateResultSet()
adds multisite constraints to the generated query, as set by these properties.
See the ATG Multisite Administration Guide for examples of search forms that use multisite criteria to filter results.