You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What should be done in the scope of this task?
EXT:solr* has to many hooks to modify Apache Solr documents.
We want a straight line with single way to modify and/or add Apache Solr documents.
This change adds new PSR-14 events:
* `ApacheSolrForTypo3\Solr\Event\Indexing\BeforePageDocumentIsProcessedForIndexingEvent`
previously used with `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['Indexer']['indexPageAddDocuments']`
* `ApacheSolrForTypo3\Solr\Event\Indexing\BeforeDocumentIsProcessedForIndexingEvent`
previously used with `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueueIndexer']['preAddModifyDocuments']`
* `ApacheSolrForTypo3\Solr\Event\Indexing\BeforeDocumentsAreIndexedEvent`
previously used with `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueueIndexer']['indexItemAddDocuments']`
This way, EXT:solr migrates to PSR-14 events and adds a more defined way to utilize the PHP API and to help extension authors to understand what is used in EXT:solr.
The hooks
* `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueueIndexer']['preAddModifyDocuments']`
* `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueueIndexer']['indexItemAddDocuments']`
* `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['Indexer']['indexPageAddDocuments']`
are now removed in favor of the new events.
These interfaces related to the hooks are removed:
* `ApacheSolrForTypo3\Solr\IndexQueue\PageIndexerDocumentsModifier`
* `ApacheSolrForTypo3\Solr\IndexQueue\AdditionalIndexQueueItemIndexer`
* `ApacheSolrForTypo3\Solr\AdditionalPageIndexer`
Documentation is added, tests are adapted.
Relates: #3376, #3441Fixes: #3437
What should be done in the scope of this task?
EXT:solr* has to many hooks to modify Apache Solr documents.
We want a straight line with single way to modify and/or add Apache Solr documents.
Current state:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueueIndexer']['preAddModifyDocuments']
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueueIndexer']['indexItemAddDocuments']
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['Indexer']['indexPagePostProcessPageDocument']
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['Indexer']['indexPageSubstitutePageDocument']
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['Indexer']['indexPageAddDocuments']
The text was updated successfully, but these errors were encountered: