[go: nahoru, domu]

Page MenuHomePhabricator

Create an API that renders the CirrusSearch indexable document based on a page_id and a revision id
Closed, ResolvedPublic5 Estimated Story Points

Description

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.

AC:

  • 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)

Event Timeline

MPhamWMF set the point value for this task to 5.Sep 19 2022, 3:46 PM

Change 832957 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/core@master] Make the doc building for search aware of the revision

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

Change 833059 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/Wikibase@master] Make the doc building for search aware of the revision

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

Change 833375 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/GeoData@master] Use SearchDataForIndex2 hook

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

Change 833380 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/Wikibase@master] Use SearchDataForIndex2 and properperly pass the revision...

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

Change 833419 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/GrowthExperiments@master] Use SearchDataForIndex2 hook

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

Change 835664 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/WikibaseMediaInfo@master] Make the doc building process for search aware of the revision

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

Change 832958 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/CirrusSearch@master] Make the doc building process revision based

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

Change 833059 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Make the doc building for search aware of the revision

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

Change 832957 merged by jenkins-bot:

[mediawiki/core@master] Make the doc building for search aware of the revision

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

Change 833380 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Use SearchDataForIndex2 and properperly pass the revision...

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

Change 835664 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@master] Use use EntityHandler::getContentDataForSearchIndex

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

Change 832958 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@master] Make the doc building process revision based

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

Change 833375 merged by jenkins-bot:

[mediawiki/extensions/GeoData@master] Use SearchDataForIndex2 hook

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

Change 833419 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Use SearchDataForIndex2 hook

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