From: Mike Rylander Date: Thu, 10 Feb 2011 19:19:28 +0000 (-0500) Subject: Teach storage to initialize the new bits of QueryParser X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f74c49fd5e7fe00ad645521fc6cd151214c47731;p=evergreen%2Fequinox.git Teach storage to initialize the new bits of QueryParser --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm index c70b5cd0ea..41ebe1b7b9 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm @@ -2805,6 +2805,17 @@ sub query_parser_fts { 'open-ils.cstore.direct.config.metabib_search_alias.search.atomic', { alias => { "!=" => undef } } )->gather(1), + config_metabib_field_index_norm_map => + $cstore->request( + 'open-ils.cstore.direct.config.metabib_field_index_norm_map.search.atomic', + { id => { "!=" => undef } }, + { flesh => 1, flesh_fields => { cmfinm => [qw/norm/] }, order_by => [{ class => "cmfinm", field => "pos" }] } + )->gather(1), + config_record_attr_definition => + $cstore->request( + 'open-ils.cstore.direct.config.record_attr_definition.search.atomic', + { id => { "!=" => undef } } + )->gather(1), ); $cstore->disconnect; @@ -3051,11 +3062,11 @@ sub query_parser_fts_wrapper { if (!$parser->initialization_complete) { my $cstore = OpenSRF::AppSession->create( 'open-ils.cstore' ); $parser->initialize( - config_metabib_field_index_norm_map => + config_record_attr_index_norm_map => $cstore->request( - 'open-ils.cstore.direct.config.metabib_field_index_norm_map.search.atomic', + 'open-ils.cstore.direct.config.record_attr_index_norm_map.search.atomic', { id => { "!=" => undef } }, - { flesh => 1, flesh_fields => { cmfinm => [qw/norm/] }, order_by => [{ class => "cmfinm", field => "pos" }] } + { flesh => 1, flesh_fields => { crainm => [qw/norm/] }, order_by => [{ class => "crainm", field => "pos" }] } )->gather(1), search_relevance_adjustment => $cstore->request( @@ -3072,6 +3083,17 @@ sub query_parser_fts_wrapper { 'open-ils.cstore.direct.config.metabib_search_alias.search.atomic', { alias => { "!=" => undef } } )->gather(1), + config_metabib_field_index_norm_map => + $cstore->request( + 'open-ils.cstore.direct.config.metabib_field_index_norm_map.search.atomic', + { id => { "!=" => undef } }, + { flesh => 1, flesh_fields => { cmfinm => [qw/norm/] }, order_by => [{ class => "cmfinm", field => "pos" }] } + )->gather(1), + config_record_attr_definition => + $cstore->request( + 'open-ils.cstore.direct.config.record_attr_definition.search.atomic', + { id => { "!=" => undef } } + )->gather(1), ); $cstore->disconnect;