Senna::Cursor - A Senna Cursor Object
use Senna::Index; use Senna::Cursor; my $cursor = $index->search($query); print "got ", $cursor->hits, " hits\n"; while (my $r = $cursor->next) { print "key = ", $r->key, ", score = ", $r->score, "\n"; } $cursor->rewind(); $cursor->close();
Returns the list of Senna::Result objects in the cursor.
Closes the the cursor
Returns the key of the current result object pointed by the cursor.
Returns the number of hits in the cursor.
Creates a new cursor. Users shouldn't really need to worry about this method
Returns the next Senna::Result object.
Moves the cursor to point the first result.
Returns the score of the current result object pointed by the cursor.
Copyright (C) 2005 by Daisuke Maki <dmaki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
Development funded by Brazil Ltd. <http://dev.razil.jp/project/senna/>
http://dev.razil.jp/project/senna - Senna Development Homepage
To install Senna, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Senna
CPAN shell
perl -MCPAN -e shell install Senna
For more information on module installation, please visit the detailed CPAN module installation guide.