NAME

Search::Odeum::Result - Perl interface to the Odeum inverted index API.

SYNOPSIS

use Search::Odeum;
my $od = Search::Odeum->new('index');
my $res = $od->search('Perl');
while(my $doc = $res->next) {
    printf "%s\n", $doc->uri;
}
$od->close;

DESCRIPTION

Search::Odeum::Result is a search result of Odeum database.

METHODS

next

get the next Search::Odeum::Document object.

init

initialize the iterator of documents.

num

get the number of the documents. but this number contains the deleted document.

and_op($result2);

get the new result which have common elements of two results;

my $res = $res1->and_op($res2);
or_op($result2);

get the new result which have sum of elements of two results;

notand_op($result2);

get the new result which have difference of elements of two results;

SEE ALSO

http://qdbm.sourceforge.net/

AUTHOR

Tomohiro IKEBE, <ikebe@shebang.jp>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Tomohiro IKEBE

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.8 or, at your option, any later version of Perl 5 you may have available.