Hello, Thank you for taking the time to answer. So, following your advices, this is what my LocalSettings.php looks like now : wfLoadExtension( 'Elastica' ); require_once "$IP/extensions/CirrusSearch/CirrusSearch.php"; wfLoadExtension( 'WikibaseCirrusSearch' ); $wgSearchType = 'CirrusSearch'; $wgDebugLogGroups['CirrusSearch'] = "$IP/extensions/CirrusSearch/error.log"; $wgWBCSUseCirrus = true; $wgWBRepoSettings['disableCirrus'] = true;
I added the debug log line because unfortunately, I get an error message when trying to search for something. This is what the error.log file shows : ` 2019-10-07 12:52:57 kevin.local mediawiki: Search backend error during full_text search for 'test' after 21: script_exception: link error 2019-10-07 12:52:57 kevin.local mediawiki: Running sendData on cluster default 0s after insertion 2019-10-07 12:52:57 kevin.local mediawiki: Search backend error during sending 1 documents to the mediawiki_general_first index(s) after 5: unknown: Error in one or more bulk request actions: update: /mediawiki_general_first/page/33085 caused blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]; 2019-10-07 12:52:57 kevin.local mediawiki: ElasticaWrite job reported failure on cluster default. Requeueing job with delay of 64. ` It looks like an index error, so I tried to rerun updateSearchIndexConfig.php maintenance script, but this one gives me the same kind of error too. ` /mediawiki/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Bulk.php: Error in one or more bulk request actions: index: /mw_cirrus_metastore_first/mw_cirrus_metastore/namespace-mediawiki--2 caused blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]; ` I'm a bit confused as I've managed to run this once when I first installed CirrusSearch, so I don't really understand why it wouldn't work now. Finally, autocompletion seems to be working even though the search itself doesn't, but it only autocompletes Item:QID instead of working on the item label, do you have any idea why ? Thanks for your help, Kevin > Le 4 oct. 2019 à 15:55, David Causse <[email protected]> a écrit : > > Please see my responses below > > On Fri, Oct 4, 2019 at 3:41 PM Thad Guidry <[email protected] > <mailto:[email protected]>> wrote: > Hi Michael, > > It's the official signup page here? > https://lists.wikimedia.org/mailman/listinfo/Wikimedia-search > <https://lists.wikimedia.org/mailman/listinfo/Wikimedia-search> > > No it is here: https://lists.wikimedia.org/mailman/listinfo/discovery > <https://lists.wikimedia.org/mailman/listinfo/discovery> > > > On Mon, Sep 30, 2019 at 11:27 AM Kévin Bois > <[email protected] > <mailto:[email protected]>> wrote: > Hello, > > I'm having a hard time setting up Cirrus Search on my Mediawiki / Wikibase > instance, I'm quite confused so I thought I could ask for some help. :) > > First, I followed the instructions to install both CirrusSearch and > WikibaseCirrusSearch (WBCS) extensions, but I don't really know what my > LocalSettings.php config file should look like. > On one hand, CirrusSearch asks for this option`$wgSearchType = > 'CirrusSearch';`, on the other hand WBCS asks for `$wgWBCSUseCirrus = true;`. > When I put them both, I get a php error : > `mediawiki/extensions/CirrusSearch/includes/Profile/SearchProfileService.php: > A profile repository type rescore named wikibase_base is already registered.` > 1/ So, do I need only one of them or is something else missing in my config > file ? I might have missed a step in the installation ? > 2/ The weird thing is, if I remove one of the two option, the search is > somewhat working and is different than before using CirrusSearch, but > autocompletion seems off, as it autocomplete only strings like "Item:QXXX" > where XXX is the QID. I would have expected an autocomplete on item labels, > not on QIDs like on Wikidata > 3/ I'm not sure either if I have to fire some CirrusSearch maintenance > scripts when I'm toying around with WBCS options in LocalSettings.php, > because it appears that WBCS extension doesn't have any. > > I apology in advance because I'm pretty sure this is a confusing post, but > there are quite a lot of questions in my head. :) > > 1/ It is very probable that the version of the wikibase code that is > installed still contain the CirrusSearch integration code. > This code has been extracted in WikibaseCirrusSearch but during a transition > period we kept the same code in both extensions (Wikibase and > WikibaseCirrusSearch), enabling this code in both Wikibase and > WikibaseCirrusSearch might lead to such error. > If my assumption is correct setting "disableCirrus" to true in the Wikibase > settings array might solve the problem as it will disable the CirrusSearch > integration code present in Wikibase letting the one present in > WikibaseCirrusSearch works (enabled with $wgWBCSUseCirrus = true). > If not: having the exact version (or git revision hash) of these 3 extensions > will help. > > 2/ By removing one of the two options you'll certainly end-up > enabling/disabling CirrusSearch > > 3/ Yes in general you should run updateSearchIndexConfig.php and > forceSearchIndex.php when enabling the extension, please see the README file > in Cirrus, there are no specific maint script for the wikibase cirrus > integration. > > Hope it helps, > > David. > > _______________________________________________ > Wikidata-tech mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
_______________________________________________ Wikidata-tech mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
