Teach storage to initialize the new bits of QueryParser
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Mar 2011 16:02:38 +0000 (16:02 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Mar 2011 16:02:38 +0000 (16:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19597 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm

index c70b5cd..41ebe1b 100644 (file)
@@ -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;