Benjamin Franz > Search-InvertedIndex-1.14 > Search::InvertedIndex::Query

Download:
Search-InvertedIndex-1.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: 1.01   Source  

NAME ^

Search::InvertedIndex::Query - A query for an inverted index search.

SYNOPSIS ^

DESCRIPTION ^

Provides methods for setting up a search query to be performed by the search engine.

CHANGES ^

 1.01 1999.06.30 - Documentation updates

Public API

Inherits 'get','set','clear' and 'exists' methods from Class::NamedParms

Initialization

new($parm_ref);

Returns and optionally initializes a new Search::InvertedIndex::Query object.

Examples:

  my $query = Search::InvertedIndex::Query->new;

  my $query = Search::InvertedIndex::Query->new({ -logic => 'or',
                                                 -weight => 0.5,
                                                  -nodes => \@query_nodes,
                                                  -leafs => \@leaf_nodes,
                                                 });

-nodes must be 'Search::InvertedIndex::Query' objects. -leafs must be 'Search::InvertedIndex::Query::Leaf' objects. -logic applies to both -nodes (after search resolution) and -leafs. If omitted, -logic is defaults to 'and'. Allowed logic values are 'and', 'or' and 'nand'. -weight is applied to the _result_ of a search of the Query object and is optional (defaulted to '1' if omitted).

Inherits 'get/set' methods from Class::NamedParms - thus to 'append' use the 'get' method on '-nodes' or '-leafs', 'push' the new thing on the end of the anon array return, and use the 'set' method to save the updated anon array.

COPYRIGHT ^

Copyright 1999, Benjamin Franz (<URL:http://www.nihongo.org/snowhare/>) and FreeRun Technologies, Inc. (<URL:http://www.freeruntech.com/>). All Rights Reserved. This software may be copied or redistributed under the same terms as Perl itelf.

AUTHOR ^

Benjamin Franz

TODO ^

Everything.

syntax highlighting: