Re: [Wikidata-tech] Installing Wikibase Cirrus Search

2019-10-25 Thread David Causse
On Fri, Oct 18, 2019 at 2:11 PM Kévin Bois <
kevin.b...@biblissima-condorcet.fr> wrote:

> [...]
>
> You raised the right issue : I've checked in chrome's console, and the XHR
> sent is : "?action=opensearch&...". Do you know how can I set the search
> box to use the wbsearchentities API ? I don't remember seeing this option
> or disabling it anywhere.
>

Unfortunately I don't know how this is activated, if we are talking about
the search box available top-right (using the Vector skin on rtl languages)
then I thought it was activated by default. If you are talking about other
search boxes like the main one in Special:Search then it's not enabled
there because not supported IIRC.
I'm not very familiar with wikibase internals therefor I can't help much on
this issue, sorry.

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-18 Thread Kévin Bois
Hello,

> Le 16 oct. 2019 à 16:48, David Causse  a écrit :
> 
> On Wed, Oct 9, 2019 at 6:13 PM Kévin Bois  > wrote:
> Hello,
> This error was indeed a disk space problem, following your advice I did reset 
> the read-only flag.
> 
> I came across multiple errors during the different maintenance scripts that I 
> somehow resolved with a bit of googling, by installing those elasticsearch 
> plugins :
> https://gerrit.wikimedia.org/r/plugins/gitiles/search/extra/ 
> 
> 
> Then I had an error when trying to search something, something like "unknown 
> highlighter of type [experimental"] which was resolved by : 
> https://gerrit.wikimedia.org/r/plugins/gitiles/search/highlighter/ 
> 
> 
> Yes indeed these plugins are needed by CirrusSearch when Wikibase integration 
> is enabled, we definitely need to improve the documentation.
>  
> 
> 1/ So at this point, the search is working, but I still have a warning upon 
> requesting something : "A warning has occurred while searching: Mixing entity 
> and article namespaces in search is currently not supported. Only entity 
> namespaces will be searched." It appears there is nothing in the log file for 
> this warning.
> 
> 
> You are running an old version of WikibaseCirrusSearch. We no longer display 
> this warning message.
> The classic page model and wikibase model are completely different and this 
> is a real challenge to provide a seamless and integrated search experience 
> for both types of data. The consensus was to provide an "optimized" query for 
> the wikibase model only if the namespaces requested do include Items types.
> Example:
> - searching on a Item and Property namespace: wikibase optimized
> - searching on Help and Item: warning displayed (your version), wikidata 
> production version: fallback to the classic wiki model
> - searching on the default namespaces: it's dependent on your wiki 
> configuration, if you don't setup the list of searched namespaces according 
> to this limitation you will see this warning message for default searches
> 
> In other words: wgNamespacesToBeSearchedDefault[1] needs to be configured in 
> a way that does not mix Item/Property namespaces with Wikipage namespaces.
>  

Ok, as I understand I need a more up to date version. So far I'm playing around 
the 1_33 release because that is the latest release for Mediawiki / Wikibase.

> 2/ My autocompletion is still broken, suggesting only on "Item:QID".
> 
> Are you using the wbsearchentities API (which should be enabled when 
> searching top right for ltr languages)?
> The completion results displayed when using the Special:Search search box 
> might not use this API leading to QIDs being displayed.
> 

You raised the right issue : I've checked in chrome's console, and the XHR sent 
is : "?action=opensearch&...". Do you know how can I set the search box to use 
the wbsearchentities API ? I don't remember seeing this option or disabling it 
anywhere.

> 
> 3/ I noticed something odd with search results. I was trying to search an 
> entity which has multiple aliases in different language (atleast 3 or 4), by 
> typing one of its french aliases : 
> - When my UI is in English, the entity is found but the highlight and the 
> alias shown is from another language, neither french or english. - When my UI 
> is in French, it shows me the correct french highlight and alias or label.
> I don't know if I'm clear, in both cases the entity is found correctly, but 
> its highlighted label or alias is not consistent across the different UI 
> languages.
> 
> No it's not, it is language dependent, every language has a list of fallback 
> and french is not a fallback for english, but english is a fallback for 
> french. When searching in english there are no guarantees that the ranking 
> nor the data displayed will be the same. This was done to address the 
> ambiguities between languages, e.g. when searching for "or" in french you 
> would like to see Gold but if you were english you would perhaps expect 
> something else.
> 
> David.
> 
> [1]: https://www.mediawiki.org/wiki/Manual:$wgNamespacesToBeSearchedDefault 
> 
> ___
> Wikidata-tech mailing list
> Wikidata-tech@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata-tech


Thanks,
Kevin___
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-16 Thread David Causse
On Wed, Oct 9, 2019 at 6:13 PM Kévin Bois <
kevin.b...@biblissima-condorcet.fr> wrote:

> Hello,
> This error was indeed a disk space problem, following your advice I did
> reset the read-only flag.
>
> I came across multiple errors during the different maintenance scripts
> that I somehow resolved with a bit of googling, by installing those
> elasticsearch plugins :
> https://gerrit.wikimedia.org/r/plugins/gitiles/search/extra/
>
> Then I had an error when trying to search something, something like
> "unknown highlighter of type [experimental"] which was resolved by :
> https://gerrit.wikimedia.org/r/plugins/gitiles/search/highlighter/
>

Yes indeed these plugins are needed by CirrusSearch when Wikibase
integration is enabled, we definitely need to improve the documentation.


>
> 1/ So at this point, the search is working, but I still have a warning
> upon requesting something : "A warning has occurred while searching:
> Mixing entity and article namespaces in search is currently not supported.
> Only entity namespaces will be searched." It appears there is nothing in
> the log file for this warning.
>
>
You are running an old version of WikibaseCirrusSearch. We no longer
display this warning message.
The classic page model and wikibase model are completely different and this
is a real challenge to provide a seamless and integrated search experience
for both types of data. The consensus was to provide an "optimized" query
for the wikibase model only if the namespaces requested do include Items
types.
Example:
- searching on a Item and Property namespace: wikibase optimized
- searching on Help and Item: warning displayed (your version), wikidata
production version: fallback to the classic wiki model
- searching on the default namespaces: it's dependent on your wiki
configuration, if you don't setup the list of searched namespaces according
to this limitation you will see this warning message for default searches

In other words: wgNamespacesToBeSearchedDefault[1] needs to be configured
in a way that does not mix Item/Property namespaces with
Wikipage namespaces.


> 2/ My autocompletion is still broken, suggesting only on "Item:QID".
>

Are you using the wbsearchentities API (which should be enabled when
searching top right for ltr languages)?
The completion results displayed when using the Special:Search search box
might not use this API leading to QIDs being displayed.


> 3/ I noticed something odd with search results. I was trying to search an
> entity which has multiple aliases in different language (atleast 3 or 4),
> by typing one of its french aliases :
> - When my UI is in English, the entity is found but the highlight and the
> alias shown is from another language, neither french or english. - When my
> UI is in French, it shows me the correct french highlight and alias or
> label.
> I don't know if I'm clear, in both cases the entity is found correctly,
> but its highlighted label or alias is not consistent across the different
> UI languages.
>

No it's not, it is language dependent, every language has a list of
fallback and french is not a fallback for english, but english is a
fallback for french. When searching in english there are no guarantees that
the ranking nor the data displayed will be the same. This was done to
address the ambiguities between languages, e.g. when searching for "or" in
french you would like to see Gold but if you were english you would perhaps
expect something else.

David.

[1]: https://www.mediawiki.org/wiki/Manual:$wgNamespacesToBeSearchedDefault
___
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-09 Thread Kévin Bois
Hello,
This error was indeed a disk space problem, following your advice I did reset 
the read-only flag.

I came across multiple errors during the different maintenance scripts that I 
somehow resolved with a bit of googling, by installing those elasticsearch 
plugins :
https://gerrit.wikimedia.org/r/plugins/gitiles/search/extra/ 


Then I had an error when trying to search something, something like "unknown 
highlighter of type [experimental"] which was resolved by : 
https://gerrit.wikimedia.org/r/plugins/gitiles/search/highlighter/ 


1/ So at this point, the search is working, but I still have a warning upon 
requesting something : "A warning has occurred while searching: Mixing entity 
and article namespaces in search is currently not supported. Only entity 
namespaces will be searched." It appears there is nothing in the log file for 
this warning.

2/ My autocompletion is still broken, suggesting only on "Item:QID".

3/ I noticed something odd with search results. I was trying to search an 
entity which has multiple aliases in different language (atleast 3 or 4), by 
typing one of its french aliases : 
- When my UI is in English, the entity is found but the highlight and the alias 
shown is from another language, neither french or english. - When my UI is in 
French, it shows me the correct french highlight and alias or label.
I don't know if I'm clear, in both cases the entity is found correctly, but its 
highlighted label or alias is not consistent across the different UI languages.

Thanks for your time,
Kevin


> Le 7 oct. 2019 à 16:14, David Causse  a écrit :
> 
> 
> 
> On Mon, Oct 7, 2019 at 3:05 PM Kévin Bois  > wrote:
> Hello,
> [...]
> 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.
> 
> 
> This error may appear when elasticsearch is running low on disk space, it can 
> switch affected indices to read-only, please see 
> https://www.elastic.co/guide/en/elasticsearch/reference/6.7/disk-allocator.html
>  
> 
>  and the index.blocks.read_only_allow_delete property to reset the read-only 
> flag.
> In short: double check disk usage on the partition where Elasticsearch has 
> its data directory, reset the read-only flag for all indices marked as 
> read-only and rerun the maint scripts as described in the CirrusSearch README 
> file.
>  
> 
> 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 ?
> 
> 
> The reason you still see results for QID queries is that WikibaseCirrusSearch 
> still performs a query on the mysql database when it detects QIDs in the 
> search query it's why you may see search results even though the 
> elasticsearch infrastructure is broken.
> 
> ___
> 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-07 Thread David Causse
On Mon, Oct 7, 2019 at 3:05 PM Kévin Bois <
kevin.b...@biblissima-condorcet.fr> wrote:

> Hello,
> [...]
> 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.
>
>
This error may appear when elasticsearch is running low on disk space, it
can switch affected indices to read-only, please see
https://www.elastic.co/guide/en/elasticsearch/reference/6.7/disk-allocator.html
and
the index.blocks.read_only_allow_delete property to reset the read-only
flag.
In short: double check disk usage on the partition where Elasticsearch has
its data directory, reset the read-only flag for all indices marked as
read-only and rerun the maint scripts as described in the CirrusSearch
README file.


>
> 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 ?
>
>
The reason you still see results for QID queries is that
WikibaseCirrusSearch still performs a query on the mysql database when it
detects QIDs in the search query it's why you may see search results even
though the elasticsearch infrastructure is broken.
___
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-07 Thread Kévin Bois
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  a écrit :
> 
> 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 
>  > 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 remo

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


[Wikidata-tech] Installing Wikibase Cirrus Search

2019-09-30 Thread Kévin Bois
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