Commit a8baaf2650b6a0b84b62a3380dcf1cd8471ff9fa
1 parent
a9426395
Exists in
master
and in
17 other branches
Updated readme [skip ci]
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
README.md
... | ... | @@ -1490,6 +1490,8 @@ while products.any? |
1490 | 1490 | end |
1491 | 1491 | ``` |
1492 | 1492 | |
1493 | +You should call `scroll` on each new set of results, not the original result. | |
1494 | + | |
1493 | 1495 | On the master branch, you can also do: |
1494 | 1496 | |
1495 | 1497 | ```ruby |
... | ... | @@ -1498,8 +1500,6 @@ Product.search("*", scroll: "1m").scroll do |batch| |
1498 | 1500 | end |
1499 | 1501 | ``` |
1500 | 1502 | |
1501 | -You should call `scroll` on each new set of results, not the original result. | |
1502 | - | |
1503 | 1503 | ## Nested Data |
1504 | 1504 | |
1505 | 1505 | To query nested data, use dot notation. | ... | ... |