Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit 1a4b737

Browse files
authored
Fix wrong syntax on debug section
`explain()` or `profile()` can not be used after `first()` as described on docs.
1 parent f281e6e commit 1a4b737

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,15 +424,13 @@ There are two methods that can help you to analyze results of a search query:
424424

425425
```php
426426
App\MyModel::search('Brazil')
427-
->first()
428427
->explain();
429428
```
430429

431430
* [profile](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-profile.html)
432431

433432
```php
434433
App\MyModel::search('Brazil')
435-
->first()
436434
->profile();
437435
```
438436

@@ -445,4 +443,4 @@ App\MyModel::search('Brazil')
445443
->buildPayload();
446444
```
447445

448-
Note, that this method returns a collection of payloads, because of possibility of using multiple search rules in one query.
446+
Note, that this method returns a collection of payloads, because of possibility of using multiple search rules in one query.

0 commit comments

Comments
 (0)