Restored pages are missing from CQL index

Steps to reproduce:

  1. Create a Page A
    • The page can be found through /rest/api/search?cql=id=<page id> (correct behaviour)
  2. Delete Page A
    • The page cannot be found through /rest/api/search?cql=id=<page id> (correct behaviour)
  3. Restore Page A from the trash
    • The page cannot be found through /rest/api/search?cql=id=<page id> (wrong behaviour)
  4. Save a new revision of page A
    • The page can be found through /rest/api/search?cql=id=<page id> (correct behaviour)

It seems that restoring a page does not add it to the CQL index. The same happens to any custom content that is attached to the page.

The content API is not affected by this, the page can be correctly accessed through /rest/api/content/<page id>.

@candid logged as CONFCLOUD-71690