$smwgElasticsearchConfig

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgElasticsearchConfig
Description Configuration settings for the use of Elasticsearch, including index and query details
Default setting
Software Semantic MediaWiki
Since version not specified
Until version still available
Configuration Configuration is missing
Keyword elasticsearch · elasticsearchstore · store · store setup


Placeholder for #30541.

Example[edit]

$GLOBALS['smwgElasticsearchConfig'] = [

	// Points to index and mapping definition files
	'index_def'       => [ ... ],

	// Defines connection details for Elasticsearch endpoints
	'connection'  => [ ... ],

	// Holds replication details
	'indexer' => [ ... ],

	// Used to modify Elasticsearch specific settings
	'settings'    => [ ... ],

	// Section to optimize the query execution
	'query'       => [ ... ]
];

Alternative[edit]

Alternatively, you can point to a JSON file by setting its path in $smwgElasticsearchProfile, which will override any settings in smwgElasticsearchConfig.

See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:3054