@@ 111-120 (lines=10) @@ | ||
108 | /** |
|
109 | * @param GenericEvent $e |
|
110 | */ |
|
111 | public function onCardUpdated(GenericEvent $e) { |
|
112 | $cardId = $e->getArgument('id'); |
|
113 | ||
114 | try { |
|
115 | $this->fullTextSearchManager->updateIndexStatus( |
|
116 | DeckProvider::DECK_PROVIDER_ID, (string)$cardId, IIndex::INDEX_CONTENT |
|
117 | ); |
|
118 | } catch (FullTextSearchAppNotAvailableException $e) { |
|
119 | } |
|
120 | } |
|
121 | ||
122 | ||
123 | /** |
|
@@ 126-135 (lines=10) @@ | ||
123 | /** |
|
124 | * @param GenericEvent $e |
|
125 | */ |
|
126 | public function onCardDeleted(GenericEvent $e) { |
|
127 | $cardId = $e->getArgument('id'); |
|
128 | ||
129 | try { |
|
130 | $this->fullTextSearchManager->updateIndexStatus( |
|
131 | DeckProvider::DECK_PROVIDER_ID, (string)$cardId, IIndex::INDEX_REMOVE |
|
132 | ); |
|
133 | } catch (FullTextSearchAppNotAvailableException $e) { |
|
134 | } |
|
135 | } |
|
136 | ||
137 | ||
138 | /** |