Exercise 8: Create new search page with Search API
In GovCMS we can setup and configure multiple searches, this includes setting up multiple Search Indices and configuring them individually (if required).
Enable Lagoon Search module
Navigate to the Extend page and locate Lagoon search module. Install it if not already installed.
Explore Solr search server
If you enabled the Lagoon search module, the Search API page now shows the Lagoon Solr server, which did not exist. This server was configured and enabled by the Lagoon Solr module.
In the next step we will attach an index to use it.
Create new Search Index
To use the Search API and to create a new search page, first, we have to create a search index. This index will ensure communications between the content of your website and end user.
Go to Configuration → Search and metadata → Search API and click the Add Index button.
Index name: Job Posting
Data sources: Content
Which bundles should be indexed?: Only those selected
Bundles: Job Posting
Server: Lagoon Solr
Accept the remaining default settings and click the Save button.