Brick configuration
The configuration of the typeahead search is performed through Brick. This allows you to easily add and change the type ahead instantly.
The default configuration is as follows:
[{"name":"Intranet","resultSource":"Bonzai Intranet Results","searchMoreUrl":"/search/Pages/intranet.aspx"},{"name":"Everything","resultSource":"Local SharePoint Results","searchMoreUrl":"/search/Pages/results.aspx"},{"name":"Documents","resultSource":"Document Portal","searchMoreUrl":"/doc-portal"},{"name":"People","resultSource":"Employee Directory By Relevance","searchMoreUrl":"/people"},{"name":"Locations","resultSource":"Locations","searchMoreUrl":"/locations"}]
The format to add new items or change items is the following JSON object string:
[
{"name":"<Vertical Name>","resultSource":"<Result Source Name>","searchMoreUrl":"<Search Redirect URL"},
{"name":"<Vertical Name 2>","resultSource":"<Result Source Name 2>","searchMoreUrl":"<Search Redirect URL 2>"},
{"name":"<Vertical Name X>","resultSource":"<Result Source Name X>","searchMoreUrl":"<Search Redirect URL X>"}
]
This string accepts the following parameters:
- Vertical Name: The label that appears on top of the search tab
- Result Source: The result source to be used for the search vertical
- Search More UL: The URL that the user will be redirected to if a search is triggered. This format must be the full site collection name