NAME
Pangloss::Application::Searcher - searcher app for Pangloss.
SYNOPSIS
use Pangloss::Application::Searcher;
my $searcher = new Pangloss::Application::Searcher();
my $view = $searcher->search_terms( $search_request );
DESCRIPTION
Searcher application for Pangloss, inherits from Pangloss::Application::Base.
METHODS
These methods throw an Error if they cannot perform their jobs. On success, each returns a Pangloss::Application::View. If you pass in a view, the results are added to it.
- $view = $obj->search_terms( $search_request, $pager [, $view ] )
-
search through the application's collection of terms by applying the Pangloss::Search::Request object given.
$pager must be a Pangloss::Search::Results::Pager object, or undef. If set, and the search request has not been modified, it will re-use this object instead of doing the search all over again.
sets $view->{search_results_pager}.
As a side-effect, the following collections are listed in the view if not already present: categories, languages, concepts, users. See the relevant application editors for more details.
AUTHOR
Steve Purkis <spurkis@quiup.com>
NOTES
This was not written to be fast. If speed becomes an issue, this will likely need rethinking.
SEE ALSO
Pangloss::Application, Pangloss::Search, Pangloss::Search::Request