class CwpSolr (View source)

CwpSolr configures Solr in a CWP-compatible manner.

Properties

Methods

public static 
configure()

Configure Solr.

public static 
options_from_environment()

No description

public static 
options_for_cwp($options)

No description

public static 
options_for_local($options)

No description

Details

static configure()

Configure Solr.

$options - An array consisting of:

'extraspath' - (String) Where to find Solr core configuartion files. Defaults to '/mysite/conf/extras'. 'version' - select the Solr configuration to use when in CWP. One of:

  • 'cwp-4': preferred version, uses secured 4.x service available on CWP
  • 'local-4': this can be use for development using silverstripe-localsolr package, 4.x branch

static options_from_environment()

No description

static options_for_cwp($options)

No description

Parameters

$options

static options_for_local($options)

No description

Parameters

$options