Provides Q&A pages and Solr-based search

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 0

Forks: 12


1.2.2 2019-08-14 23:00 UTC


Build Status Latest Stable Version Total Downloads License Dependency Status Reference Status


This module provides FAQ functionality on top of Solr.

Just by adding the module to the project, you'll get a ModelAdmin for FAQs, where you can manage Questions & Answers. You only need to add an FAQPage type (comes with the module), and some questions and answers.

The module comes with its own Solr search index, customized to have a fuzzy search, and has its own file for stopwords and synonyms.



Edit your project-wide composer.json file as follows; in the "require" block add:

"silverstripe/faq": "*"

Then in the root of your project run:

#> composer update silverstripe/faq

Or just

composer install silverstripe/faq

Run a database rebuild by visiting http://yoursite.com/dev/build. This will add the required database columns and tables for the module to function. Remember to do Solr_Configure and Solr_ReIndex.

If you are using CWP

Check how to configure this module to behave like CWP-Solr on the docs.


  1. Add a FAQPage to your CMS

  2. Add an FAQ on the FAQ ModelAdmin sidebar link

  3. Wait for Solr to reindex

  4. Search your FAQ page :)


Frontend templates

All templates can be overloaded from within your project themes directory. Module default templates can be found in the module's templates directory.

Configuration using YAML

FAQ module comes with a default set of templates to start the Solr index. If you want to override the path from where this files come from, you need to add a YAML file like this.

Name: faqoverride
After: 'faq/*'
    extraspath: 'new/path/to/extrapath'
    templatespath: 'new/path/to/template'

  question_boost: '3'
  answer_boost: '1'
  keywords_boost: '4'

Adding Featured FAQs

Featured FAQs appear on the FAQ Page before a user performs a search. These can be added and organised from the Featured FAQs tab of the FAQ Page CMS admin.



Search logging

FAQ searches performed on the FAQ page are logged so that a record is kept of the search term used and the results pages and FAQ articles that were viewed as a result of the search. There is also functionality to rate and leave a comment about an FAQ article.

All of this search data is available in the CMS in the "Search Log" section. CMS users can filter the data on numerous criteria and drill into results to find and rectify gaps in the knowledge base.

There are convenient links through to FAQ articles for content authors to amend the content and keywords for an article in order to boost the article higher in search results for appropriate search terms.

To connect all of this data together a session ID is associated with each record along with a search log ID passed as a GET param. This helps to prevent the data integrity being corrupted when URLs are shared between browsers and sessions. Further description of the functionality is described in the FAQ search logging unit test.


  • Get static config variables from yml files for controller
  • Pagetypes, search index and dataobjects easily extendable
  • version FAQs or move to inherit from SiteTree
  • cwp manual configuration if not using cwp-version
  • make this a supported SS module
  • Better approach for archiving search logs and related data