Page MenuHomePhabricator

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


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:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
dcausse triaged this task as Medium 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

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