CWP\Search\CwpSearchIndex
Abstract wrapper for all cwp-core features
Can be extended by user indexes to include these features. for an example
Synopsis
class CwpSearchIndex
extends SolrIndex
{
- // members
- private static array $copy_fields = ;
- private static string $dictionary = '_spellcheck';
- // methods
- public void init()
- public void uploadConfig()
- public string getFieldDefinitions()
- public ArrayData search()
Hierarchy
Extends
- SilverStripe\FullTextSearch\Solr\SolrIndex
Members
private
- $copy_fields
—
array
Copy all fields into both search and spellcheck data source - $dictionary
—
string
Default dictionary to use. This will overwrite the 'spellcheck.dictionary' option for searches given, unless set to empty.
Methods
public
- getFieldDefinitions()
- init()
- search()
- uploadConfig() — Upload config for this index to the given store