In T410602 a contributor relied on some of the cirrus debug APIs to troubleshoot an issue with the search index. This was particularly useful since it allowed to give rapid feedbacks to other contributors about what is possibly happening but also write a detailed phab bug report that greatly sped up the troubleshooting done by the cirrus maintainers.
We should better document these APIs so that it becomes easier to understand & explain search behaviors.
Missing debug APIs:
- dump the completion index document (i.e. action=cirrusSuggestDump)
- possibly allow to specify the cluster with action=cirrusDump
Document existing APIs:
- indexed documents: action=cirrusDump (and future action=cirrusSuggestDump)
- search explainability: cirrusDumpQuery, cirrusDumResults, cirrusExplain
- document building: cirrusbuilddoc & cirruscompsuggestbuilddoc
AC:
- missing APIs are implemented
- all APIs are documented in mw.org