Lucas_Werkmeister_WMDE added a comment.
For the API parameter, we’ll have a config setting defining the possible API
values and mapping them to the underling profile context value. This means it’s
the administrator’s responsibility to make the API parameter useful (just like
it’s already their responsibility to configure WikibaseCirrusSearch more
generally), and to configure a value that the installed search extensions will
understand. By default, the mapping would be:
$wgWBRepoSettings['searchProfiles'] = [ // name up for discussion
'default' => null,
];
So a default Wikibase install would always pass `null` into the
`EntitySearchHelper`, leaving it to the search implementation to interpret this
profile however it wants. (Non-CirrusSearch implementations would ignore it at
the moment.) In production, we would configure:
$wgWBRepoSettings['searchProfiles'] = [
'default' => null,
'language' => 'language_selector_prefix', //
\Wikibase\Search\Elastic\Hooks::LANGUAGE_SELECTOR_PREFIX
];
We would //not// explicitly include the value that’s equivalent to `null`
(`EntitySearchElastic::CONTEXT_WIKIBASE_PREFIX` = `'wikibase_prefix_search'`).
Just `default` and `language`.
TASK DETAIL
https://phabricator.wikimedia.org/T307869
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Lucas_Werkmeister_WMDE
Cc: ItamarWMDE, dcausse, Lucas_Werkmeister_WMDE, MPhamWMF, Aklapper,
Lydia_Pintscher, Fernandobacasegua34, Astuthiodit_1, Nikospappas1312, 786,
Suran38, Biggs657, karapayneWMDE, Invadibot, Universal_Omega, maantietaja,
Juan90264, Alter-paule, Beast1978, CBogen, Un1tY, Akuckartz, Hook696, Kent7301,
joker88john, CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86,
Af420, Bsandipan, GoranSMilovanovic, Mahir256, QZanden, EBjune, LawExplorer,
Lewizho99, Maathavan, _jensen, rosalieper, Bodhisattwa, Neuronton, Scott_WUaS,
Wikidata-bugs, aude, Gryllida, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]