[BUGFIX] Use PageTitle API for indexed_search
The value of indexedDocTitle was not updated when a title had been
generated by the PageTitle API. This simply writes the generated
page title to indexedDocTitle so that it can be used in the
indexed hook.
Resolves: #88041
Releases: master, 9.5
Change-Id: I8ac1fd8295447aafa7e175fb09fa11f565442019
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60354
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Richard Haeser <richard@maxserv.com>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Richard Haeser <richard@maxserv.com>