Page MenuHomePhabricator

using `searchIndexProperties` to index statements not working
Closed, ResolvedPublicBUG REPORT

Description

I want to index statements of a specific property.
The documentation says that this can be done with the searchIndexProperties option.
I can't get it to work.

Steps to replicate the issue (include links if applicable):

0. Install Wikibase using docker

  1. Create a new property
  1. add this to Localsettings.php (with the correct property identifier)
$wgWBRepoSettings['searchIndexProperties'] = ['P1', 'P2'];
  1. create an item
  1. add statement to the item with the property created in step 1.
  1. wait a bit, for indexing stuff.
  1. Check what has been indexed.

Array of properties (by ID string) that should be included in the statement_keywords field of the search index.

  1. =(

What happens?:

No indexing of the statement

What should have happened instead?:

Indexing of the statement

Software version (skip for WMF-hosted wikis like Wikipedia):
copied from .env

## Image Configuration
WIKIBASE_IMAGE_NAME=wikibase/wikibase:1.37.6-wmde.9
WDQS_IMAGE_NAME=wikibase/wdqs:0.3.115-wmde.9
WDQS_FRONTEND_IMAGE_NAME=wikibase/wdqs-frontend:wmde.9
ELASTICSEARCH_IMAGE_NAME=wikibase/elasticsearch:6.8.23-wmde.9
WIKIBASE_BUNDLE_IMAGE_NAME=wikibase/wikibase-bundle:1.37.6-wmde.9
QUICKSTATEMENTS_IMAGE_NAME=wikibase/quickstatements:wmde.9
WDQS_PROXY_IMAGE_NAME=wikibase/wdqs-proxy:wmde.9
MYSQL_IMAGE_NAME=mariadb:10.9

Other information (browser name/version, screenshots, etc.):

Event Timeline

VeniVidiVicipedia claimed this task.

The problem is in the docker-compose.yml file.
The Localsettings.php was only mounted in the wikibase service,
and not in the wikibase_jobrunner where the indexing is done...