Skip to content

Commit cb6734a

Browse files
authored
fix format
1 parent af9bbf5 commit cb6734a

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

readme.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -569,33 +569,32 @@ ES::type("my_type")->search("bar")->count();
569569

570570
##### Scan-and-Scroll queries
571571

572-
These queries are suitable for large amount of data.
573-
A scrolled search allows you to do an initial search and to keep pulling batches of results
574-
from Elasticsearch until there are no more results left. It’s a bit like a cursor in a traditional database
575572

576-
```php
573+
574+
```php
575+
576+
# These queries are suitable for large amount of data.
577+
# A scrolled search allows you to do an initial search and to keep pulling batches of results
578+
# from Elasticsearch until there are no more results left.
579+
# It’s a bit like a cursor in a traditional database
580+
577581
$documents = ES::type("my_type")->search("foo")
578582
->scroll("2m")
579583
->take(1000)
580584
->get();
581-
```
582-
Response will contain a hashed code `scroll_id` will be used to get the next result by running
583585

584-
```php
586+
# Response will contain a hashed code `scroll_id` will be used to get the next result by running
587+
585588
$documents = ES::type("my_type")->search("foo")
586589
->scroll("2m")
587590
->scrollID("DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAAFMFlJQOEtTdnJIUklhcU1FX2VqS0EwZncAAAAAAAABSxZSUDhLU3ZySFJJYXFNRV9laktBMGZ3AAAAAAAAAU4WUlA4S1N2ckhSSWFxTUVfZWpLQTBmdwAAAAAAAAFPFlJQOEtTdnJIUklhcU1FX2VqS0EwZncAAAAAAAABTRZSUDhLU3ZySFJJYXFNRV9laktBMGZ3")
588591
->get();
589-
```
590-
591-
And so on ...
592-
593-
Note that you don't need to write the query parameters in every scroll.
594-
All you need the `scroll_id` and query scroll time.
595-
596-
To clear `scroll_id`
592+
593+
# And so on ...
594+
# Note that you don't need to write the query parameters in every scroll. All you need the `scroll_id` and query scroll time.
597595

598-
```php
596+
# To clear `scroll_id`
597+
599598
ES::type("my_type")->scrollID("DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAAFMFlJQOEtTdnJIUklhcU1FX2VqS0EwZncAAAAAAAABSxZSUDhLU3ZySFJJYXFNRV9laktBMGZ3AAAAAAAAAU4WUlA4S1N2ckhSSWFxTUVfZWpLQTBmdwAAAAAAAAFPFlJQOEtTdnJIUklhcU1FX2VqS0EwZncAAAAAAAABTRZSUDhLU3ZySFJJYXFNRV9laktBMGZ3")
600599
->clear();
601600
```

0 commit comments

Comments
 (0)