Search::GIN::Query::Set - Create queries with set operations
version 0.11
# build a query like: # (type:pdf OR type:png) AND (name:Homer OR name:Bart) use Search::GIN::Query::Set; use Search::GIN::Query::Manual; my $query = Search::GIN::Query::Set->new( operation => 'INTERSECT', subqueries => [ Search::GIN::Query::Manual->new( values => { type => [qw(pdf png)] } ), Search::GIN::Query::Manual->new( values => { name => [qw(Homer Bart)] } ), ] );
Creates a manual GIN query that can be used to search using basic set theory, in order to build more complex queries.
This query doesn't provide any specific search, it's just a set operator for subqueries. You can build complex queries by using other set queries as subqueries for a set query.
Creates a new query.
The subqueries to process
One of the basic set operators: "UNION", "INTERSECT" and "EXCEPT". The default is "UNION"
יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman), Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Search::GIN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::GIN
CPAN shell
perl -MCPAN -e shell install Search::GIN
For more information on module installation, please visit the detailed CPAN module installation guide.