Search::GIN::Query::Set(3pm)

Search::GIN::Query::Set3pm

Create queries with set operations

Usage

    # 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)]
                }
            ),
        ]
    );

Version

version 0.11

Overview

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.

Methods/subroutines

new

Creates a new query.

Attributes

subqueries

The subqueries to process

operation

One of the basic set operators: "UNION", "INTERSECT" and "EXCEPT". The default is "UNION"

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8
  3. 9–11
  4. 12–13

Author

XXXX XXX'XX (Yuval Kogman) <[email protected]>

From libsearch-gin-perl 0.11-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.