In this article, we'll take you through the configuration of a simple search object. For this example, we'll create an FAQ search object.
Things you need
- A model to store the FAQ data. See our knowledge base article, Create a new model.
We added a model with properties to store the question and answer and a category property to control what FAQs users see so they see FAQs more relevant to them. The FAQ model is used in one of our templates, see our knowledge base article, FAQs.
Create a search object
See our knowledge base article, Add a new search setting object.
Configure the layout
You can use the usual content block features to configure how you want the search results to appear.
FAQ search filter on the global search results page
When a user searches for anything using the global search feature in the toolbar, the results page shows the results along with the search filters for the FAQ search object you created so they can reduce search results to only show items belonging to that search object.