| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 35 | public function onAfterWrite(): void |
||
| 36 | { |
||
| 37 | $this->owner->onAfterWrite(); |
||
| 38 | |||
| 39 | $config = SiteConfig::current_site_config(); |
||
| 40 | if ($config->FreeTextSearchIndexingModeInBulk === false) { |
||
| 41 | $factory = new IndexerFactory(); |
||
| 42 | $indexer = $factory->getIndexer(); |
||
| 43 | |||
| 44 | $indexer->index($this->owner); |
||
| 45 | $this->owner->IsDirtyFreeTextSearch = false; |
||
| 46 | $this->owner->write(); |
||
| 47 | } |
||
| 50 |