I had just get Elastica from extension:elastica site, and cirrussearch from Extension:CirrusSearch.
I'm assuming i have ElasticSearch since the following is stated in my version:
ruflin/elastica | 2.2.0 | MIT | Elasticsearch Client |
Therefore, i set the following from
$wgCirrusSearchServers = array( 'elasticsearch0', 'elasticsearch1', 'elasticsearch2', 'elasticsearch3' );
to
$wgCirrusSearchServers = "localhost'';
There are other $wgCirrusSearch variables that you might want to change from their defaults.
Now run this script to generate your elasticsearch index:
php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php
Once i run the updateSearchIndexConfig script, the following error shows:
content index... Fetching Elasticsearch version... Unexpected Elasticsearch failure. Http error communicating with Elasticsearch: Couldn't connect to host, Elastic search down?
ANy idea what would cause this or how do i enable elasticsearch?