Open physikerwelt opened 7 months ago
I've found (https://phabricator.wikimedia.org/T192288) that we just have to specify the properties that we want to index using:
$wgWBRepoSettings['searchIndexProperties'] = [ 'P999', 'P888' ];
I've checked it locally and it works. The only question is, do we want to index all properties? Or should we just do this for some relevant subset?
I've found (https://phabricator.wikimedia.org/T192288) that we just have to specify the properties that we want to index using:
$wgWBRepoSettings['searchIndexProperties'] = [ 'P999', 'P888' ];
I've checked it locally and it works. The only question is, do we want to index all properties? Or should we just do this for some relevant subset?
We confirmed by local testing that adding
$wgWBRepoSettings['searchIndexProperties'] = [ 'P999', 'P888' ];
resolves the issue. I suggest starting with a few properties to see how well this works in production.
Maybe start with P1451 an extend it a second step.
This is now deployed
Working example search by de 2559697
Force reindexing now
root@91e78119efac:/var/www/html/extensions/CirrusSearch/maintenance# php ForceSearchIndex.php --namespace 120 --queue
...
[ my_wiki] Queued 100 pages ending at 67235 at 431/second
reindexing has finished.
Describe the issue https://portal.mardi4nfdi.de/w/index.php?search=haswbstatement%3A*&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1&ns120=1&ns122=1&ns4200=1&ns4202=1 does not provide any results. However, one would expect that it returns almost all wikibase items.