Skip to content
This repository
Browse code

Improved the docs for View->from

Closes #30
  • Loading branch information...
commit 25437431dbbee7a0952b4ce60287c6b044b08eec 1 parent 5805cba
Clinton Gormley authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 lib/Elastic/Model/View.pm
6 lib/Elastic/Model/View.pm
@@ -819,8 +819,10 @@ B<Note:> Sorting cannot be combined with L</scan()>.
819 819
820 820 $from = $view->from;
821 821
822   -By default, results are returned from the first result. If you would like to
823   -start at a later result (eg for paging), you can set L</from>.
  822 +By default, results are returned from the first result. Think of it as
  823 +I<"the number of docs to skip">, so setting C<from> to C<0> would start from
  824 +the first result. Setting C<from> to C<10> would skip the first 10 results
  825 +and return docs from result number 11 onwards.
824 826
825 827 =head2 size
826 828

0 comments on commit 2543743

Please sign in to comment.
Something went wrong with that request. Please try again.