The Search Box cartridge provides site visitors with an interface for using keyword search in an application. You can also configure the cartridge to display auto-suggest results.
The Search Box cartridge for the Discover Electronics reference application is shown below:
If you have enabled auto-suggest search results, they display when the keyword search reaches the specified minimum number of matching characters. These auto-suggest results provide potential search matches that assist site users in rapidly navigating your application and finding the content they need.
The Search Box cartridge includes configuration options for triggering an auto-suggest panel:
Note
You must create and configure the auto-suggest panel separately.
Content Source — A content folder that is
either unrestricted, or restricted to rules of type
AutoSuggestPanel
. Click the
View link to navigate away from the current
cartridge and view the selected folder.
Rule Limit — The number of
AutoSuggestPanel
rules to return.
Minimum Characters — The number of characters the end user must enter before the auto-suggest panel appears. The minimum and maximum acceptable values are set by your Application Developer in the cartridge template.
Auto-suggest results display in a drop-down panel on the current page, rather than as a separate page. You must create an auto-suggest panel before you can add any auto-suggest cartridges to it.
The Search Box cartridge triggers an auto-suggest panel when the end user's search query reaches a specific character length. Auto-suggest results display as a drop-down list beneath the Search Box on the current page, as shown in the example below:
To add an auto-suggest panel:
In the Experience Manager Content panel, select the content folder that contains your auto-suggest content.
In the Discover Electronics reference application, this is the
→ folder.In the Content Details Panel, Add an auto-suggest cartridge, such as DimensionSearchAutoSuggestItem.
Click OK to save your changes and return to the Rule List View.
After adding the cartridge, configure it as desired.