| Data-SearchEngine documentation | view source | Contained in the Data-SearchEngine distribution. |
Data::SearchEngine::Item - An individual search result.
$result->add(Data::SearchEngine::Item->new(
id => 'SKU',
values => {
name => 'Foobar',
description => 'A great foobar!'
},
score => 1.0
));
An item represents an individual search result. It's really just a glorified HashRef.
A unique identifier for this item.
The name value pairs for this item.
The score this item earned.
Returns the keys from the values HashRef, e.g. a list of the value names for this item.
Returns the value for the specified key for this item.
Sets the value for the specified key for this item.
Cory G Watson, <gphat at cpan.org>
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.
| Data-SearchEngine documentation | view source | Contained in the Data-SearchEngine distribution. |