JBAS-1246 Call number search configs continued
authorBill Erickson <berickxx@gmail.com>
Tue, 1 Mar 2016 15:45:27 +0000 (10:45 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/2.5-to-2.7-upgrade.sql

index b47eaab..bee3a7e 100644 (file)
@@ -14,11 +14,21 @@ ALTER TABLE authority.record_entry DISABLE TRIGGER map_thesaurus_to_control_set;
 
 BEGIN;
 
+SET statement_timeout = 0;
+
 -- Resolves issue with re-ingests failing on call number index entry create.
--- discovered while re-indexing for JBAS-1246
+-- Discovered while re-indexing for JBAS-1246
+-- Cargo-culting the other configs for now.  Will reasess as needed.
 CREATE TEXT SEARCH CONFIGURATION call_number (COPY = english_nostop);
 
-SET statement_timeout = 0;
+INSERT INTO config.metabib_class (name, label)
+    VALUES ('call_number', 'Call Number');
+
+INSERT INTO config.metabib_class_ts_map
+    (field_class, ts_config, index_weight, always)
+VALUES
+    ('call_number','simple','A',true),
+    ('call_number','english_nostop','C',true);
 
 /*  JBAS-1093 
     Allow duplicate sort_values on browse entries.