NAME

HTML::Index::Search - perl module for generating a CGI search results page.

SYNOPSIS

use HTML::Index;
use HTML::Index::Search;

my $indexer = HTML::Index->new(
    STOP_WORD_FILE      => $stopfile,
    HTML_DIRS           => [ '/path/to/htdocs' ],
    DB_DIR              => $db_dir,
);

$indexer->create_index();

my $search = HTML::Index::Search->new(
        db_dir                  => $db_dir,
        stopword_file           => $stopword_file,
        template_file           => $template_file,
        results_per_page        => 10,
        max_results             => 100,
        docroot                 => '/path/to/htdocs',
        urlroot                 => 'http://my.site.com/',
        max_search_words        => 3,
        max_text_length         => 200,
        remote                  => 0,
        logfile                 => $logfile,
);

print $search->search_results_page();

DESCRIPTION

HTML::Indexer::Search is a module for generating a search results page for a web searhch CGI. It is used in conjunction with an index created by HTML::Index. It uses an HTML::Template template file to generate the results page. A sample template file is included with this distribution.

AUTHOR

Ave Wrigley <Ave.Wrigley@itn.co.uk>

COPYRIGHT

Copyright (c) 2001 Ave Wrigley. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.