Open rodrigomorales1 opened 1 year ago
In this Github Gist , you can find the output of executing docker container logs
in the container wikibase/elasticsearch:6.8.23-wmde.9
.
$ docker container logs 33c83053b5ac
For the record, this is the output of docker container ls
.
$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
54c9604c8d77 wikibase/quickstatements:wmde.9 "/bin/bash /entrypoi…" 11 hours ago Up 11 hours 0.0.0.0:8840->80/tcp, :::8840->80/tcp wikibase-docker-quickstatements-1
325cad783991 wikibase/wdqs:0.3.115-wmde.9 "/entrypoint.sh /run…" 11 hours ago Up 11 hours wikibase-docker-wdqs-updater-1
e922710ef662 wikibase/wdqs-frontend:wmde.9 "/entrypoint.sh ngin…" 11 hours ago Up 11 hours 0.0.0.0:8834->80/tcp, :::8834->80/tcp wikibase-docker-wdqs-frontend-1
0a0f68a3ddad wikibase/wikibase-bundle:1.37.6-wmde.9 "/bin/bash /entrypoi…" 11 hours ago Up 11 hours 0.0.0.0:80->80/tcp, :::80->80/tcp wikibase-docker-wikibase-1
abee40ac8f18 wikibase/wikibase-bundle:1.37.6-wmde.9 "/bin/bash /jobrunne…" 11 hours ago Up 11 hours 80/tcp wikibase-docker-wikibase_jobrunner-1
8eaf006bc8c9 wikibase/wdqs-proxy:wmde.9 "/bin/sh -c \"/entryp…" 11 hours ago Up 11 hours 80/tcp wikibase-docker-wdqs-proxy-1
33c83053b5ac wikibase/elasticsearch:6.8.23-wmde.9 "/usr/local/bin/dock…" 11 hours ago Up 8 hours 9200/tcp, 9300/tcp wikibase-docker-elasticsearch-1
9b10e5d0bd66 mariadb:10.9 "docker-entrypoint.s…" 11 hours ago Up 11 hours 3306/tcp wikibase-docker-mysql-1
8aa39a88b1e7 wikibase/wdqs:0.3.115-wmde.9 "/entrypoint.sh /run…" 11 hours ago Up 11 hours 9999/tcp wikibase-docker-wdqs-1
@rdrg109 statements are not indexed by default.
You need to add this configuration option (with the identifiers of the properties you want indexed):
$wgWBRepoSettings['searchIndexProperties'] = ['P1', 'P2'];
Make sure that it's also mounted into the jobrunner since that container is doing the actual indexing. (see https://github.com/wmde/wikibase-release-pipeline/pull/390/files)
The context
I'm running Wikibase in Docker locally for experimentation purposes. I'm using the files from the
main
branch as of the time of this writing (permalink to commit). Namely, the files shown below.example/docker-compose-extra.yml
example/docker-compose.yml
example/extra-install.sh
example/jobrunner-entrypoint.sh
example/template.env
I've run the following command to start Docker
and this is the state of the containers
The problem
If I search
insource:"has been"
, the pageMain Page
is the only result shown, because it contains the sentenceMediaWiki has been installed.
. However, if I searchhaswbstatement:*
, no result is shown and the messageThere were no results matching the query.
is shown even though I have Wikibase items that have statements.This is the URL that was shown in the top of my web browser after I pressed the button
Search
(see screenshot below).Additional information
I found this issue (archive) published in the Gitlab instance (https://gitlab.opensourceecology.de). A user mentioned that
haswbstatement:*
showed 0 results, which is the same problem that I'm describing here. @lucaswerkmeister shared a link which, apparently, implied that the issue had been solved. I tried visiting the same endpoint in my instance and this was the result. I'm including it below just in case it helps to find the root cause of this issue.Here's the output shown above pretty-printed.
Personal thoughts
I think the problem here is the extension
WikibaseCirrusSearch
. I'd appreciate anyone could help me to find the root cause of this issue. If you need more information of my system, please let me know.