NOTE: T296814 must be done before this
Once we have the commons search index `weighted_tags` field populated with data from wikidata, we need to enable searching for images via wikidata ids. The following will need to be added to commons config
```
$wgMediaInfoCustomMatchFeature = [
'depicts_or_linked_from' => [
'fields' => [
'statement_keywords' => [
[ 'prefix' => 'P180=', 'boost' => 0.06800689749434177 ], //depicts
[ 'prefix' => 'P6243=', 'boost' => 0.0001 ], // digital representation of (arbitrary small value)
],
'weighted_tags' => [
[ 'prefix' => 'image.linked.from.wikidata.p18/', 'boost' => 1000 * 0.9862993091599952 ],
[ 'prefix' => 'image.linked.from.wikidata.p373/', 'boost' => 7.190793838918551 ],
[ 'prefix' => 'image.linked.from.wikidata.sitelink/', 'boost' => 5.031161363459293 ],
],
],
// logistic function
'functionScore' => [
'scriptCode' => '100 / ( 1 + exp( -1 * ( _score + intercept ) ) )',
'params' => [ 'intercept' => -1.3459675572537635 ],
]
],
];
```
When this is in place, users will be able to search for, for example, images of cats using `custommatch:depicts_or_linked_from=Q146`