tpwd / ke_search

Search Extension for TYPO3 Content Management System, including faceting search functions.
https://extensions.typo3.org/extension/ke_search/
GNU General Public License v3.0
7 stars 31 forks source link

Remove records in incremental mode #229

Closed christianbltr closed 3 months ago

christianbltr commented 3 months ago

Some records will be skipped during full indexing, e.g. page records that have the "no_index" flag or news records without required categories. Incremental indexing currently only removes "deleted" and "hidden" records but should also remove records that would be skipped for other reasons in normal indexing.

During incremental tt_content record which should not be indexed (e.g. parent page has "no_search" flag is set) will now be removed from the index.

During incremental indexing files which should not be indexed (e.g. "tx_kesearch_no_search" flag is set) will now be removed from the index.

Additionally instantiating indexerStatusService and indexRepository has now been moved to the IndexerBase class, along with the functions removeRecordFromIndex, removeFileFromIndex and detectFileLanguage.