---
name: "Search::GIN::Query::Attributes"
section: "3pm"
platform: "linux"
package: "libsearch-gin-perl"
version: "0.11-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Search::GIN::Query::Attributes"
---

# Search::GIN::Query::Attributes(3pm)

Create attributes-based GIN queries

## NAME

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

## VERSION

version 0.11

## SYNOPSIS

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

## DESCRIPTION

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

### new

Creates a new query.

## ATTRIBUTES

### attributes

Attributes of the object you want to find.

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

## AUTHOR

XXXX XXX'XX (Yuval Kogman) \<nothingmuch@woobling.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2008 by XXXX XXX'XX (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.
