Koha::SearchEngine::Zebra::QueryBuilder - Zebra query objects from user-supplied queries Several methods are pass-throughs to C4 methods or other methods here
This provides the functions that take a user-supplied search query, and provides something that can be given to Zebra to get answers.
use Koha::SearchEngine::Zebra::QueryBuilder; $builder = Koha::SearchEngine::Zebra::QueryBuilder->new({ index => $index }); my $simple_query = $builder->build_query("hello");
Pass-through to C4::Search::buildQuery
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)
my $query = build_authorities_query( \@query );
Pass-through to build_authorities_query
my $term = $self->clean_search_term($term);