--- trunk/Estraier.pm 2006/03/12 15:20:06 112 +++ trunk/Estraier.pm 2006/03/12 18:43:24 116 @@ -4,7 +4,7 @@ use strict; use warnings; -our $VERSION = '0.04'; +our $VERSION = '0.05_1'; =head1 NAME @@ -599,6 +599,35 @@ } +=head2 set_skip + +Set number of skipped documents from beginning of results + + $cond->set_skip(42); + +Similar to C in RDBMS. + +=cut + +sub set_skip { + my $self = shift; + $self->{skip} = shift; +} + +=head2 skip + +Return skip for this condition. + + print $cond->skip; + +=cut + +sub skip { + my $self = shift; + return $self->{skip}; +} + + package Search::Estraier::ResultDocument; use Carp qw/croak/; @@ -1490,6 +1519,7 @@ push @args, 'wwidth=' . $self->{wwidth}; push @args, 'hwidth=' . $self->{hwidth}; push @args, 'awidth=' . $self->{awidth}; + push @args, 'skip=' . $self->{skip} if ($cond->{skip}); return join('&', @args); }