Use a search element
A search element is used to display the results of a search query. A search element cannot be used in isolation, but must be used together with an HTML element that is used to define the search query form.
To create a search form :
- create a search query using an HTML element
- create a search results view using a search component
You reference both the HTML element and search component in a single presentation template. The search component is only rendered after a search query is executed by a user.
- Creating a search query
A search query is created using an HTML element.
The form you create using the HTML element is used to submit a search query. The results of the search query are then displayed within a search element.
- Display search results
Use a search element stored in search component to display the results of a search query.
Parent topic:
Work with elements
Related concepts
Enable search for Web content