mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-714_thesaurus_indexation
- new : if the thesaurus has been modified since it's last indexation, it will be re-indexed as soon a record is to be indexed. - nb : after thesaurus modification, the databox MUST be manually re-indexed (which will reindex the thesaurus before) - todo : remove useless dialog boxes from thesaurus app (... "this term was..." "...add with/out reindexing ?..."). To be done in the future app using future routes.
This commit is contained in:
@@ -110,7 +110,7 @@ class IndexerSubscriber implements EventSubscriberInterface
|
||||
public function onThesaurusChange(ThesaurusEvent $event)
|
||||
{
|
||||
$databox = $event->getDatabox();
|
||||
$this->getIndexer()->scheduleRecordsFromDataboxForIndexing($databox);
|
||||
$databox->delete_data_from_cache(\databox::CACHE_THESAURUS);
|
||||
}
|
||||
|
||||
public function onCollectionChange(CollectionEvent $event)
|
||||
|
Reference in New Issue
Block a user