2017 © Pedro Peláez
 

silverstripe-module silverstripe-knowledgebase

A module for creating a feature rich knowledge-base

image

benmanu/silverstripe-knowledgebase

A module for creating a feature rich knowledge-base

  • Monday, March 19, 2018
  • by benmanu
  • Repository
  • 3 Watchers
  • 0 Stars
  • 94 Installations
  • Scheme
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Knowledge-Base

Provides the ability to create a knowledge base. Functionality is based on top of the silverstripe/faq module., (*1)

Features

Uses the [https://github.com/silverstripe/silverstripe-faq](SilverStripe FAQ module) as a base which contains the following features:, (*2)

  • Featured FAQ's
  • Categorizing
  • Search results will automatically attempt to detect misspellings of search terms.

Search term synonyms

The use of custom synonym definitions is another way in which misspelling suggestions can be controlled. Synonyms are configured out of the box in this module., (*3)

You can configure your synonyms in the Settings tab in the CMS., (*4)

Note that only admin users (who are those with privileges necessary to run the Solr_Configure task) will be able to view and edit this field., (*5)

Installation

composer require silverstripe/knowledgebase, (*6)

Then ensure to run $ framework/sake dev/tasks/Solr_Configure and $ framework/sake dev/tasks/Solr_Reindex, and you should have the Knowledge base module ready to use., (*7)

Note:, (*8)

If you are using the cwp/cwp module, you will need to ensure you do not enable the SynonymsSiteConfig extension in your config as it is enabled in this module by default., (*9)

Changes to Solr configuration.

The following outlines the changes that have been made to the specified Solr configuration files compared to the default silverstripe/faq settings:, (*10)

knowledgebase/conf/extras/solrconfig.xml, (*11)

<lst name="spellchecker">
    <str name="name">default</str>
    <str name="field">_text</str>

to, (*12)

<lst name="spellchecker">
    <str name="name">default</str>
    <str name="field">_spellcheckText</str>

Apply exact figures in fulltextsearch module which is needs to work Synonym perfectly. fulltextsearch solrconfig.xml, (*13)

<float name="accuracy">0</float>
<int name="minQueryLength">1</int>
<float name="maxQueryFrequency">0</float>

to, (*14)

<float name="accuracy">0.5</float>
<int name="minQueryLength">4</int>
<float name="maxQueryFrequency">0.01</float>

knowledgebase/conf/extras/schema.ss, (*15)

Added the following underneath $FieldDefinitions:, (*16)

<field name='_spellcheckText' type='textSpellHtml' indexed='true' stored='false' multiValued='true' />

knowledgebase/conf/extras/types.ss, (*17)

Move SynonymFilterFactory to bottom of analyzer to include Synonyms in search results. See this pull request for more information, (*18)

The Versions

19/03 2018
22/02 2018

3.1.x-dev

3.1.9999999.9999999-dev http://github.com/benmanu/silverstripe-knowledgebase

A module for creating a feature rich knowledge-base

  Sources   Download

BSD-3-Clause

The Requires

 

by Ben Manu
by Tim Kung

search silverstripe faq solr knowledgebase