class Solr (View source)

Properties

protected static $solr_options

Configuration on where to find the solr server and how to get new index configurations into it.

protected static $merged_solr_options

A cache of solr_options with the defaults all merged in

protected static SolrService $service_singleton
protected static $service_core_singletons

Methods

public static 
configure_server(array $options = array())

Update the configuration for Solr. See $solr_options for a discussion of the accepted array keys

public static 
array
solr_options()

Get the configured Solr options with the defaults all merged in

public static 
set_service_class($class)

No description

public static 
service(string $core = null)

Get a SolrService

public static 
get_indexes()

No description

public static 
include_client_api()

Include the thirdparty Solr client api library. Done this way to avoid issues where code is called in mysite/_config before fulltextsearch/_config has a change to update the include path.

Details

static configure_server(array $options = array())

Update the configuration for Solr. See $solr_options for a discussion of the accepted array keys

Parameters

array $options
  • The options to update

static array solr_options()

Get the configured Solr options with the defaults all merged in

Return Value

array
  • The merged options

static set_service_class($class)

No description

Parameters

$class

static SolrService_Core service(string $core = null)

Get a SolrService

Parameters

string $core

Optional name of index class

Return Value

SolrService_Core

static get_indexes()

No description

static include_client_api()

Include the thirdparty Solr client api library. Done this way to avoid issues where code is called in mysite/_config before fulltextsearch/_config has a change to update the include path.