SilverStripe solr Search

GetSetSchemaFactoryTrait

Trait GetSetSchemaFactoryTrait

Getters and setters for the schema factory

Table of Contents

Properties

$index  : BaseIndex
Index to generate the schema for
$store  : bool
Store the value in Solr
$template  : string
ABSOLUTE Path to template
$typesTemplate  : string
ABSOLUTE Path to types.ss template

Methods

getClassID()  : string
Get the Identifier Field for Solr
getDefaultField()  : string|array<string|int, mixed>
Get the default field to generate df components for
getIDField()  : string
Get the Identifier Field for Solr
getIndex()  : BaseIndex
Get the Index that's being used
getIndexName()  : string
Get the name of the index being used
getTemplate()  : string
Get the base template for the schema xml
getTypesTemplate()  : string
Get the types template if defined
setIndex()  : SchemaFactory
Set the index that's being used and add the introspection for it
setStore()  : void
Set the store value
setTemplate()  : SchemaFactory
Set a custom template for schema xml
setTypesTemplate()  : SchemaFactory
Set custom types template

Properties

Methods

getDefaultField()

Get the default field to generate df components for

public getDefaultField() : string|array<string|int, mixed>
Return values
string|array<string|int, mixed>

getTemplate()

Get the base template for the schema xml

public getTemplate() : string
Return values
string

getTypesTemplate()

Get the types template if defined

public getTypesTemplate() : string
Return values
string

        
On this page

Search results