Foorum::Search - search Foorum


Foorum documentation  | view source Contained in the Foorum distribution.

Index


NAME

Top

Foorum::Search - search Foorum

SYNOPSIS

Top

  use Foorum::Search;

  my $search = new Foorum::Search;
  my $ret = $search->query('topic', { author_id => 1, title => 'test', page => 2, per_page => 20 } );
  # this ->query would use Foorum::Search::Sphinx when 'searchd' is available.
  # or else, use Foorum::Search::Database to get the results.

DESCRIPTION

Top

This module is mainly to design the interface of Foorum search regardless the backend (Sphinx or Database or others)

SEE ALSO

Top

Foorum::Search::Database, Foorum::Search::Sphinx

AUTHOR

Top

Fayland Lam <fayland at gmail.com>


Foorum documentation  | view source Contained in the Foorum distribution.