\FAQSearchIndex
Custom solr search index. Extends {@see CwpSearchIndex} and adds customization capabilities to change solr configuration (.solr folder) only for this index.
Uses a loose search.
Synopsis
class FAQSearchIndex
extends SolrIndex
{
- // methods
- public void init()
- public void search()
- public static void escapeQuery()
- public static void unescapeQuery()
- public void getExtrasPath()
- public void getTemplatesPath()
- protected void getQueryComponent()
Hierarchy
Extends
- SolrIndex
Methods
protected
- getQueryComponent() — Overloaded to remove compulsory matching on all words
public
- escapeQuery() — escapes characters that may break Solr search
- getExtrasPath() — Overwrite extra paths functions to only use the path defined on the yaml file We can create/overwrite new .txt templates for only this index
- getTemplatesPath() — Overwrite template paths to only use the path defined on the yaml file
- init() — Adds FAQ fields to the index
- search() — Overload
- unescapeQuery() — unescapes characters previously escaped to stop Solr breaking