The keyword search field is part of a multisite search control that allows customers to search only the current site or to search across multiple sites. For example, on the CRS Store US site, the control looks like this:

This illustration is described in the surrounding text.

This search control appears on virtually all Commerce Reference Store pages. As mentioned above, SearchBox.jsp, creates the text input field and checkboxes for specifying the sites to search. The control includes a checkbox for each site that shares a shopping cart with the current site.

To control which sites are searched, the SearchBox.jsp renderer invokes the /atg/endeca/assembler/SearchFormHandler component, which is of class atg.projects.store.assembler.SearchFormHandler. This form handler determines the sites to search based on which checkboxes are selected, and stores the site IDs in the /atg/endeca/assembler/SearchedSites component. The /atg/endeca/assembler/cartridge/manager/filter/SiteFilterBuilder component then creates a record filter to restrict the records returned to only the ones associated with those sites.

See the ATG-Endeca Integration Guide for more information about record filtering.


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