Search::GIN::Query::Attributes - Create attributes-based GIN queries


Search-GIN documentation  | view source Contained in the Search-GIN distribution.

Index


NAME

Top

Search::GIN::Query::Attributes - Create attributes-based GIN queries

VERSION

Top

version 0.08

SYNOPSIS

Top

    use Search::GIN::Query::Attributes;

    my $query = Search::GIN::Query::Attributes->new(
        attributes => {
            name => 'Homer',
        },
    );

DESCRIPTION

Top

Creates an attributes-based GIN query that can be used to search records in a storage.

This is a ready-to-use query that uses an object's attributes to search through the storage.

METHODS/SUBROUTINES

Top

new

Creates a new query.

ATTRIBUTES

Top

attributes

Attributes of the object you want to find.

    my $query = Search::GIN::Query::Attributes->new(
        attributes => {
            name => 'Homer',
            city => 'Springfield',
        },
    );

AUTHOR

Top

Yuval Kogman <nothingmuch@cpan.org>

COPYRIGHT AND LICENSE

Top


Search-GIN documentation  | view source Contained in the Search-GIN distribution.