Hi,
I have installed cirrussearch inside mediawiki but it is not searching the word inside any uploaded documents.
Request someone to review and advise if any steps were missed:
Please note, the uploaded documents contains MS WORD, POWERPOINT, PDF'S, EXCEL, MSG (Outlook email) , TXT files.
I followed below steps:-
installed media wiki successfully.
installed elastica inside the extention folder.
installed cirrussearch inside the extention folder
after that I performed steps mentioned in README.txt file
--------------------------------------------------- Instructions in README.TXT file ----------------------------
All elastic versions prior to 5.3.1 have bugs that affect CirrusSearch:
- elastic versions before 5.3.x requires the following config in your LocalSettings.php:
$CirrusSearchElasticQuirks = [ 'query_string_max_determinized_states' => true ];
- elastic versions before 5.3.1 suffer from a bug that prevent an index to be reindexed
properly without missing docs when using multiple elasticsearch machines
- when using elastic prior to 5.5.2 with the extra plugin and the super_detect_noop script
you must activate the "super_detect_noop_enable_native" option (see docs/settings.txt)
Place the CirrusSearch extension in your extensions directory.
Make sure you have the curl php library installed (sudo apt-get install php5-curl in Debian.)
You also need to install the Elastica MediaWiki extension.
Add this to LocalSettings.php:
wfLoadExtension( 'Elastica' );
require_once( "$IP/extensions/CirrusSearch/CirrusSearch.php" );
$wgDisableSearchUpdate = true;
Configure your search servers in LocalSettings.php if you aren't running Elasticsearch on localhost:
$wgCirrusSearchServers = [ 'elasticsearch0', 'elasticsearch1', 'elasticsearch2', 'elasticsearch3' ];
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
Now remove $wgDisableSearchUpdate = true from LocalSettings.php. Updates should start heading to Elasticsearch.
Next bootstrap the search index by running:
php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipLinks --indexOnSkip
php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipParse
Note that this can take some time. For large wikis read "Bootstrapping large wikis" below.
Once that is complete add this to LocalSettings.php to funnel queries to ElasticSearch:
$wgSearchType = 'CirrusSearch';
-------------------------------------------------------------------------------------------------------------------------------------
Thanks - Amit