Bug 11577: Code and intranet template changes
[koha-ffzg.git] / C4 / Context.pm
index 9a7b75d..63e8ebe 100644 (file)
@@ -988,6 +988,8 @@ sub _new_queryparser {
         my $config_file = $context->config('queryparser_config');
         $config_file ||= '/etc/koha/searchengine/queryparser.yaml';
         if ( $QParser->load_config($config_file) ) {
+            # Set 'keyword' as the default search class
+            $QParser->default_search_class('keyword');
             # TODO: allow indexes to be configured in the database
             return $QParser;
         }