NAME

KinoSearch::Search::ORQuery - Union multiple result sets.

SYNOPSIS

    my $foo_or_bar_query = KinoSearch::Search::ORQuery->new;
    $foo_or_bar_query->add_child($foo_query);
    $foo_or_bar_query->add_child($bar_query);
    my $hits = $searcher->search( query => $foo_or_bar_query );
    ...

DESCRIPTION

ORQuery matches when any of its children match, so its result set is the union of their result sets. Matching documents recieve a summed score from all matching child Queries.

CONSTRUCTOR

new()

    my $or_query = KinoSearch::Search::ORQuery->new;

Constructor. Takes no parameters.

METHODS

add_child(query)

Add a child Query node.

INHERITANCE

KinoSearch::Search::ORQuery isa KinoSearch::Search::PolyQuery isa KinoSearch::Search::Query isa KinoSearch::Obj.

COPYRIGHT

Copyright 2005-2008 Marvin Humphrey

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.20.

Copyright © 2004-2008 Marvin Humphrey