Category talk:New contributors

Latest comment: 7 years ago by Qgil-WMF in topic Cirrussearch is not working

Please do not post support questions here.

Instead, use one of these channels:

Further options for contacting appropriate people can be found at Communication .

Cirrussearch is not working

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


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 Amitumar (talk) 09:56, 31 January 2018 (UTC)Reply

help me friends
@Prsenthilnathan
@Donxello
@GFXDude2010
@Sergezolotukhin Amitumar (talk) 09:59, 31 January 2018 (UTC)Reply
Hi @Amitumar, this is not a good place to ask. Please use Project:Support desk or https://discourse-mediawiki.wmflabs.org/ Qgil-WMF (talk) 11:34, 31 January 2018 (UTC)Reply
could anyone help me. Amitumar (talk) 08:16, 1 February 2018 (UTC)Reply
Solved at https://discourse-mediawiki.wmflabs.org/t/cirrus-search-not-working/170 Qgil-WMF (talk) 09:11, 2 February 2018 (UTC)Reply
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Return to "New contributors" page.