Re: [Wikidata-tech] Installing Wikibase Cirrus Search

2019-10-04 Thread David Causse
Please see my responses below

On Fri, Oct 4, 2019 at 3:41 PM Thad Guidry  wrote:

> Hi Michael,
>
> It's the official signup page here?
> https://lists.wikimedia.org/mailman/listinfo/Wikimedia-search
>
> No it is here: https://lists.wikimedia.org/mailman/listinfo/discovery


>
>> On Mon, Sep 30, 2019 at 11:27 AM Kévin Bois <
>> kevin.b...@biblissima-condorcet.fr> 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
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech


Re: [Wikidata-tech] Installing Wikibase Cirrus Search

2019-10-04 Thread Thad Guidry
Hi Michael,

It's the official signup page here?
https://lists.wikimedia.org/mailman/listinfo/Wikimedia-search

If not, then perhaps there needs to be a bit of cleanup on the Mailing
lists page:  https://meta.wikimedia.org/wiki/Mailing_lists/Overview
where I saw a few mentions of "discovery".

Thad
https://www.linkedin.com/in/thadguidry/


On Fri, Oct 4, 2019 at 8:29 AM Michael Holloway 
wrote:

> Hello Kevin,
>
> Yes, WikibaseCirrusSearch can be tricky to install.  I'd recommend asking
> your question again on the Search and Discovery mailing list (
> discov...@lists.wikimedia.org), where it's more likely to reach a member
> of the Wikimedia Search Platform Team, who are most likely to be able to
> help.
>
> Good luck!
> Michael
>
> On Mon, Sep 30, 2019 at 11:27 AM Kévin Bois <
> kevin.b...@biblissima-condorcet.fr> 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. :)
>>
>> Kevin
>> ___
>> Wikidata-tech mailing list
>> Wikidata-tech@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
>>
>
>
> --
> Michael Holloway
> Software Engineer, Product Infrastructure
> ___
> Wikidata-tech mailing list
> Wikidata-tech@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
>
___
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech


Re: [Wikidata-tech] Installing Wikibase Cirrus Search

2019-10-04 Thread Michael Holloway
Hello Kevin,

Yes, WikibaseCirrusSearch can be tricky to install.  I'd recommend asking
your question again on the Search and Discovery mailing list (
discov...@lists.wikimedia.org), where it's more likely to reach a member of
the Wikimedia Search Platform Team, who are most likely to be able to help.

Good luck!
Michael

On Mon, Sep 30, 2019 at 11:27 AM Kévin Bois <
kevin.b...@biblissima-condorcet.fr> 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. :)
>
> Kevin
> ___
> Wikidata-tech mailing list
> Wikidata-tech@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
>


-- 
Michael Holloway
Software Engineer, Product Infrastructure
___
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech