NAME
Data::SearchEngine::Item - An individual search result.
SYNOPSIS
$result->add(Data::SearchEngine::Item->new(
id => 'SKU',
values => {
name => 'Foobar',
description => 'A great foobar!'
},
score => 1.0
));
DESCRIPTION
An item represents an individual search result. It's really just a glorified HashRef.
ATTRIBUTES
id
A unique identifier for this item.
values
The name value pairs for this item.
score
The score this item earned.
METHODS
keys
Returns the keys from the values HashRef, e.g. a list of the value names for this item.
get_value
Returns the value for the specified key for this item.
Sets the value for the specified key for this item.
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.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 79:
Unknown directive: =head