codappix / search_core

TYPO3 CMS 8.x Extension with basic Integration of Elasticsearch
https://search-core.readthedocs.io/en/latest/
12 stars 9 forks source link

Pages do not get indexed if content has changed #131

Closed DanielSiepmann closed 6 years ago

DanielSiepmann commented 6 years ago

Currently only the indexer for changed table is triggered. Therefore a page is only indexed if their attributes change, not if content change.

Furthermore we should take into account that content might be placed onto multiple different pages. It does not make sense do index a sys_folder if content is changed that gets displayed on other pages.

Therefore we should check out cache clearing and use that hook to re-index a page whenever their cache was cleared. This way Integrators have full control.

DanielSiepmann commented 6 years ago

Looks like we can't get information about all possible pages. E.g. if an integrator configures custom tags to be cleared and attaches them to pages, this get handled by CacheManager and we do not get any information.

We therefore can only respect direct page cache clearing.