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
Copy file name to clipboardExpand all lines: README.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,25 +127,19 @@ class Dummy extends Model implements Searchable
127
127
```
128
128
129
129
### Partial updating of search index
130
-
For register models events (save/update/delete) `use Nqxcode\LuceneSearch\Model\Search` and call `registerEventsForSearchIndexUpdate` method of trait in `boot` method of model:
130
+
For register of necessary events (save/update/delete) `use Nqxcode\LuceneSearch\Model\SearchTrait`in target model:
131
131
132
132
```php
133
133
134
134
use Illuminate\Database\Eloquent\Model;
135
135
use Nqxcode\LuceneSearch\Model\Searchable;
136
-
use Nqxcode\LuceneSearch\Model\Search as SearchTrait;
0 commit comments