<<

NAME

Koha::SearchEngine::Zebra::QueryBuilder - Zebra query objects from user-supplied queries Several methods are pass-throughs to C4 methods or other methods here

DESCRIPTION

This provides the functions that take a user-supplied search query, and provides something that can be given to Zebra to get answers.

SYNOPSIS

    use Koha::SearchEngine::Zebra::QueryBuilder;
    $builder = Koha::SearchEngine::Zebra::QueryBuilder->new({ index => $index });
    my $simple_query = $builder->build_query("hello");

METHODS

build_query

    Pass-through to C4::Search::buildQuery

build_query_compat

    my ($error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type) =
        build_query_compat($operators, $operands, $indexes, $limits, $sort_by, $scan, $lang, $params)

build_authorities_query

    my $query = build_authorities_query( \@query );

build_authorities_query_compat

   Pass-through to build_authorities_query

clean_search_term

    my $term = $self->clean_search_term($term);

<<