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:
Jean-Yves Gaulier
2016-10-12 18:42:16 +02:00
parent 15d5780201
commit cf40c99ea7
9 changed files with 162 additions and 121 deletions

View File

@@ -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)