Skip to content

Commit

Permalink
Readme changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nqxcode committed Apr 8, 2017
1 parent aa3f7d4 commit 7b8784f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,19 @@ For register of necessary events (save/update/delete) `use Nqxcode\LuceneSearch\

```

### Perform operations without indexing

If you want to avoid triggering the indexing, wrap necessary operations in the ``withoutSyncingToSearch()`` method on your model:

```php
Product::withoutSyncingToSearch(function () {
// mass update position for product, e.g.
foreach (Product::all() as $i => $product) {
$product->update(['position' => $i)]);
}
});
```

### Query building
Build query in several ways:

Expand Down

0 comments on commit 7b8784f

Please sign in to comment.