There may be cases where you only want to surface one vertical in a search experience with all the functionality of vertical search (e.g., facets, sorting). In this case, you would not need or want a universal search page since the information would be redundant. Some examples of a single vertical search could be: a restaurant locator, find a doctor, or a frequently asked questions page.
To create a single vertical search experience:
- Add a vertical page. See the Add a Page or Vertical to Search Frontend Theme and follow the Add a Vertical steps.
- Name the page “index”. You’ll need to have an index.html page for any website because it is the default page when no page is specified (i.e. a user goes to the URL "www.domain.com" instead of the page "www.domain.com/search"). By naming the vertical page “index”, it allows the vertical search to act as the default page and keep all the functionality of the vertical search, such as facets.
- Hide the navigation bar. To easily hide the navigation bar, you can comment out the components in your newly created
index.html.hbsfile. The two lines you need to comment out are:
{{> templates/vertical-grid/script/navigation }}
{{> templates/vertical-grid/markup/navigation }}