NAME

Data::SearchEngine::Results::Faceted - Facet role for Results

SYNOPSIS

package Data::SeachEngine::Foo;

with 'Data::SearchEngine::Results::Faceted';

sub search {
    # do stuff
    $results->set_facet('foo', 'bar');
}

DESCRIPTION

Provides storage and methods for retrieving facet information.

ATTRIBUTES

facets

HashRef of facets for this query. The HashRef is keyed by the name of the facet and the values are the facet's value.

METHODS

facet_names

Returns an array of all the keys of facets.

Gets the facet with the specified name. Returns undef if one does not exist.

Sets the facet with the specified name.

AUTHOR

Cory G Watson, <gphat at cpan.org>

COPYRIGHT & LICENSE

Copyright 2009 Cory G Watson

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 52:

Unknown directive: =head

Around line 56:

Unknown directive: =head