Back to top anchor
Documentation

Sector Search API and Search Facets configuration

User role
Drupal Sitebuilder
Task
Sitebuilding Backend
Topic
Search and search results
Product
Sector Starter kit

The Search API module together with the Facets module allows sitebuilders to create and manage faceted search interfaces. Your Sector site not only benefits from a fast and configurable sitewide search - you can also add data-type-specific searches for any content type, with configuration only (no need to code).

Features and functionality

From 8.x-2.x-beta1 (October 2018), the Sector Starter Kit ships with a preconfigured sitewide search using Search API and Facets replacing the Drupal default search. The configuration includes: 

  • Preconfigured Search API DB server, 
  • Preconfigured search index for a sitewide search, 
  • Preconfigured search view, 
  • Preconfigured facet, 
  • Keyword search block, and
  • An addition to the Page content settings allowing us to exclude single pages from the sitewide search. 

Included contribution modules

Related entities and configuration

The Sector default DB search server

<your-domain>admin/config/search/search-api/server/sector_default_db_search_server  

The DB server using the default Drupal DB.

Sector sitewide search index

<your-domain>/admin/config/search/search-api/index/sector_sitewide_search/ 

The Search API DB index for the sitewide search. The index is excluding the Promotion content type (via the content data source). 

Sector sitewide search view 

<your-domain>/admin/structure/views/view/sector_sitewide_search

The Search API search view using an exposed form block to provide the sitewide keyword search placed via the block management.  

Search facet 

<your-domain>/admin/config/search/facets/

A facet block for content types rendered as a block and placed via block management, and a facet summary block (using the Facets summary sub-module) allowing us to render the reset button and the selected terms. 

Content settings 

<your-domain>/admin/structure/taxonomy/manage/automated_contextual_content/overview

We added a term to allow editorial staff to exclude nodes of the content type Page from search results. 

Sample content

  • Term "Hide from sitewide search results" for the content settings taxonomy.
  • The term is also applied to the 403 and 404 sample pages. 
SearchAPI

Last updated

Sector 9 is out!

With Drupal 9 released, we have published our Sector 9 roadmap as well as completed the first release for Sector 9.

Need Help?

Sector is brought to you by Sparks Interactive - supporting Sector from Wellington and Auckland

Open Source award winner!

Sparks Interactive are delighted to accept the Open Source Use in Business award for Sector and the Sector.nz open source platform.

Subscribe for Sector updates