NAME

Search::Mousse::Writer::Related - Writer for related items in Search::Mousse

SYNOPSIS

my $related = Search::Mousse::Writer::Related->new(
  mousse => $mousse,
  size   => 10,
);
$related->write;

DESCRIPTION

Search::Mousse::Writer::Related takes a Search::Mousse database and analyses it to find related items. Once you have analysed it, the Search::Mousse methods fetch_similar and fetch_similar_keys will then be available.

CONSTRUCTOR

new

The constructor takes a few arguments: a new Search::Mousse object and the maximum number of related items you wish to retrieve:

my $related = Search::Mousse::Writer::Related->new(
  mousse => $mousse,
  size   => 10,
);

METHODS

write

To analyse the database and write out the results, you must call the write() method:

$related->write;

SEE ALSO

Search::Mousse, Search::Mousse::Writer

AUTHOR

Leon Brocard, <acme@astray.com>

COPYRIGHT

Copyright (C) 2005, Leon Brocard

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.