Creating your search results page
Search results integration
There are generally three ways to integrate with DXP search to provide a search results page.
How would you like to get your search results
-
Use a REST asset to access templated results
Nest a templated set of search results within a DXP CSM standard page.
-
Use search results served directly by the DXP search
Create the templates for your search results using the DXP search’s own templating. Link this to your website by only creating a search box to call the search.
-
Integrate with the search results JSON endpoint
Use the DXP search as a headless service. Get your search results in JSON or XML format and build your own code to format the results.
Configuring the search box
Creating a search box is as simple as creating a HTML form that calls the search. Instructions for setting up the search box vary depending on the method you choose to get the results and examples are provided in the individual sections above.
-
Setting up auto-completion on your search box
Connect auto-completion to your search box so that users are given search query suggestions while entering their query.