Lines 988-993
sub _new_queryparser {
Link Here
|
988 |
my $config_file = $context->config('queryparser_config'); |
988 |
my $config_file = $context->config('queryparser_config'); |
989 |
$config_file ||= '/etc/koha/searchengine/queryparser.yaml'; |
989 |
$config_file ||= '/etc/koha/searchengine/queryparser.yaml'; |
990 |
if ( $QParser->load_config($config_file) ) { |
990 |
if ( $QParser->load_config($config_file) ) { |
|
|
991 |
# Set 'keyword' as the default search class |
992 |
$QParser->default_search_class('keyword'); |
991 |
# TODO: allow indexes to be configured in the database |
993 |
# TODO: allow indexes to be configured in the database |
992 |
return $QParser; |
994 |
return $QParser; |
993 |
} |
995 |
} |
994 |
- |
|
|