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’;
cmd line result:
each and every steps got succes.
E:\dnd\iriwikipedia\extensions\CirrusSearch\maintenance>php updateSearchIndexCon
fig.php
content index…
Fetching Elasticsearch version…5.6.6…ok
Scanning available plugins…none
Inferring index identifier…my_wikipedia_content_first
Picking analyzer…english
Validating number of shards…ok
Validating replica range…ok
Validating shard allocation settings…done
Validating max shards per node…ok
Validating analyzers…ok
Validating mappings…
Validating mapping…ok
Validating aliases…
Validating my_wikipedia_content alias…ok
Validating my_wikipedia alias…ok
Updating tracking indexes…done
general index…
Fetching Elasticsearch version…5.6.6…ok
Scanning available plugins…none
Inferring index identifier…my_wikipedia_general_first
Picking analyzer…english
Validating number of shards…ok
Validating replica range…ok
Validating shard allocation settings…done
Validating max shards per node…ok
Validating analyzers…ok
Validating mappings…
Validating mapping…ok
Validating aliases…
Validating my_wikipedia_general alias…ok
Validating my_wikipedia alias…ok
Updating tracking indexes…done
Deleting namespaces…done
Indexing namespaces…done
E:\dnd\iriwikipedia\extensions\CirrusSearch\maintenance>php forceSearchIndex.php
–skipLinks --indexOnSkip
[ my_wikipedia] Indexed 9 pages ending at 12 at 11/second
[ my_wikipedia] Indexed 8 pages ending at 22 at 11/second
[ my_wikipedia] Indexed 10 pages ending at 32 at 12/second
[ my_wikipedia] Indexed 9 pages ending at 42 at 12/second
[ my_wikipedia] Indexed 9 pages ending at 52 at 12/second
[ my_wikipedia] Indexed 10 pages ending at 62 at 12/second
[ my_wikipedia] Indexed 10 pages ending at 72 at 13/second
[ my_wikipedia] Indexed 7 pages ending at 79 at 13/second
Indexed a total of 72 pages at 13/second
E:\dnd\iriwikipedia\extensions\CirrusSearch\maintenance>php forceSearchIndex.php
–skipParse
[ my_wikipedia] Indexed 45 pages ending at 52 at 137/second
[ my_wikipedia] Indexed 27 pages ending at 79 at 154/second
Indexed a total of 72 pages at 154/second
Thanks - Amit