As a search engineer I want to access the document that CirrusSearch will index for a particular page_id & revision_id.
Currently Cirrus exposes the cirrusbuilddoc property. Unfortunately it does not support selecting a revision. As we plan to fetch the CirrusSearch content while consuming EventBus page state streams we want to make sure that the revision we expect to read is the one that CirrusSearch will use to create its document.
We could possibly add a new optional parameter rev_id to the existing cirrusbuilddoc property or create a completely new API endpoint.
- A MW API can be called to construct the CirrusSearch document for a particular revision id
- The response should indicate if the revision has been found or (should not fallback to latest page revision)