Steps to reproduce:
- Create a Page A
- The page can be found through
/rest/api/search?cql=id=<page id>
(correct behaviour)
- The page can be found through
- Delete Page A
- The page cannot be found through
/rest/api/search?cql=id=<page id>
(correct behaviour)
- The page cannot be found through
- Restore Page A from the trash
- The page cannot be found through
/rest/api/search?cql=id=<page id>
(wrong behaviour)
- The page cannot be found through
- Save a new revision of page A
- The page can be found through
/rest/api/search?cql=id=<page id>
(correct behaviour)
- The page can be found through
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>
.