SilverStripe Search

SearchSynonym extends DataObject
in package

Class \Firesphere\SearchBackend\Models\SearchSynonym

Table of Contents

Properties

$Keyword  : string
$Synonym  : string
$db  : array<string|int, mixed>
$plural_name  : string
$singular_name  : string
$summary_fields  : array<string|int, mixed>
$table_name  : string

Methods

getCMSFields()  : FieldList
Get the required CMS Fields for this synonym
getCombinedSynonym()  : string
Combine this synonym in to a string for the synonyms, like Solr synonyms.txt file
getModifiedID()  : string
Get an ID for usage as reference, e.g. in Solr.

Properties

$db

private static array<string|int, mixed> $db = ['Keyword' => 'Varchar(255)', 'Synonym' => 'Text']

DB Fields

$plural_name

private static string $plural_name = 'Search synonyms'

Plural name

$singular_name

private static string $singular_name = 'Search synonym'

Singular name

$summary_fields

private static array<string|int, mixed> $summary_fields = ['Keyword', 'Synonym']

Summary fields

$table_name

private static string $table_name = 'SearchSynonym'

Table name

Methods

getCMSFields()

Get the required CMS Fields for this synonym

public getCMSFields() : FieldList
Return values
FieldList

getCombinedSynonym()

Combine this synonym in to a string for the synonyms, like Solr synonyms.txt file

public getCombinedSynonym() : string
Return values
string

getModifiedID()

Get an ID for usage as reference, e.g. in Solr.

public getModifiedID() : string

Using the Table name as an identifier from the Base synonyms

Return values
string

        
On this page

Search results