Cparle added a comment.

How to test this:

  1. Load wikibase data into whatever wiki you're using (use the WikibaseImport extension if you need it)
  2. $wgWBRepoSettings['searchIndexProperties'] is used to whitelist the ids of the properties you want to index statements for, so for example if you want to index statements for wikibase properties P999 and P888 you set (e.g. in LocalSettings.php)
$wgWBRepoSettings['searchIndexProperties'] = [ 'P999', 'P888' ];

  1. Add one or more statements concerning your chosen property to a MediaInfo item (e.g. if 'depicts' is in your property whitelist add depicts=(something) as a statement)
  2. You can check what has been indexed by tacking ?action=""> onto the url for the MediaInfo item or its corresponding File page. You should be able to see a statement_keywords array with an element for each statement you added in the format PXXX=QYYY where PXXX is the id of your property and QXXX is the id of your item

Note that property ids are not preserved by WikibaseImport, and the property id for 'depicts' will not be the same locally as it is on wikidata


TASK DETAIL

EMAIL PREFERENCES

To: Cparle
Cc: gerritbot, Aklapper, Cparle, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, PDrouin-WMF, Gq86, Baloch007, E1presidente, Ramsey-WMF, Darkminds3113, SandraF_WMF, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, EBjune, Tramullas, Acer, V4switch, LawExplorer, Lewizho99, Maathavan, Susannaanas, Wong128hk, Aschroet, Jane023, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Ricordisamoa, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Matanya, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to