Jump to content

Extension:CirrusSearch/ES6CompatTransportWrapper

From mediawiki.org

This Elastica transport class allows CirrusSearch to work with Elasticsearch 6.8.23 while using ruflin/Elastica 7.1.5. You can enable it like this:

$wgCirrusSearchServers = [
        [
                'transport' => [
                        "type" => \CirrusSearch\Elastica\ES6CompatTransportWrapper::class,
                        'wrapped_transport' => 'Http'
                ],
                "port" => 9200,
                "host" => "elasticsearch_hostname"
        ]
];

This compatibility layer mainly allows writes to be correctly applied. It was used on the WMF infrastructure to allow a zero-downtime upgrade migration plan. You should upgrade to Elasticsearch 7.10.2 rather than utilizing this compatibility layer.