
Data::SearchEngine::Item - An individual search result.

version 0.33

my $results = Data::SearchEngine::Results->new;
$results->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 score this item earned.
The name value pairs for this item.

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@cpan.org>

This software is copyright (c) 2012 by Cold Hard Code, LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.