@@ -, +, @@ the default search class - Have UseQueryParser == "Don't try" - Perform a search typing just a word that would have many matches on your Zebra db. - Take note of the search results count. - Make sure you have the queryparser.yaml file in your config dir. - Set UseQueryParser == "Try" - Perform the same search a couple of times - Run the regression tests $ prove -v t/db_dependent/QueryParser.t - Apply the patch - Run tests $ prove -v t/db_dependent/QueryParser.t - Repeat the steps 'To reproduce' - Sign off :-D --- C4/Context.pm | 2 ++ 1 file changed, 2 insertions(+) --- a/C4/Context.pm +++ a/C4/Context.pm @@ -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; } --