Right now, every time we tune Wikidata (and probably main search too?) search profile tuning, such as EntitySearchProfiles.php, we are changing Wikibase or CirrusSearch source code. This is not ideal, since this tuning may be specific to Wikimedia sites and not be useful for other users of Mediawiki/Wikibase code.
So I think we should split these configs in two parts:
- Basic "good enough" config that generic Wikibase install could run
- Specifically tuned Wikidata config that we use only for Wikidata and that resides in mediawiki-config repo.
This will allow us to fine tune the parameters without having to change main source (and also means these changes can be deployed as config changes, which they are, and not code changes).
This of course bases on the assumption that (1) and (2) are different, if it turns out that they are not and our tuned config is always good for any Wikibase install, then please feel free to decline this task. But we should at least check whether it's the case :)
This may be part of general profile refactoring @dcausse was planning.