Page MenuHomePhabricator

Cirrus profile management should provide a standard way to override profile content
Closed, ResolvedPublic

Description

Some extensions would like to provide sane defaults for search profiles. In some circumstances these defaults may need some wiki specific configurations.
A real use-case is wikidata search based on statement boosting, the statements are wikibase QXX ids since those are installation specific the default profiles should not provide them.
The previous approach was to inject a custom rescore components using cirrus low level APIs. It should not be needed, extensions should not have to deal cirrus internals when they want to customize search profiles.

@EBernhardson suggested solution based on a xpath like syntax allowing to override the profile settings (i.e. injecting some new data based on external configuration).
A proof of concept is available here: https://3v4l.org/NtpGE

Event Timeline

dcausse created this task.Apr 10 2018, 9:42 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
dcausse triaged this task as Normal priority.Apr 10 2018, 9:42 AM
dcausse moved this task from needs triage to This Quarter on the Discovery-Search board.
dcausse moved this task from This Quarter to Current work on the Discovery-Search board.

Change 425329 had a related patch set uploaded (by DCausse; owner: DCausse):
[mediawiki/extensions/CirrusSearch@master] Add a way to override search profile content

https://gerrit.wikimedia.org/r/425329

Change 425329 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] Add a way to override search profile content

https://gerrit.wikimedia.org/r/425329

debt closed this task as Resolved.Apr 27 2018, 8:17 PM