LP#1276222: apply correct TS maps when building field_entry index vectors user/gmcharlt/lp1276222_grab_correct_ts_maps
authorGalen Charlton <gmc@esilibrary.com>
Tue, 4 Feb 2014 16:45:21 +0000 (08:45 -0800)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 4 Feb 2014 16:54:25 +0000 (08:54 -0800)
commita623e0fe0d826c82a0dddff4f826a477ea096c9e
tree8d2bff9b7c4970fcf4133589d113382aab09a972
parentbd17b2fa124c5de44c593414442af696501fd640
LP#1276222: apply correct TS maps when building field_entry index vectors

This patch ensures that only the approriate class- and field-level
TS maps get used when populating the index_vector column in
metabib.*_field_entry.  Prior to this patch, the active flag in each
config.metabib_*_ts_maps tables was ignored, meaning that one
could not disable a mapping without deleting it outright.  Furthermore,
defects in the query to fetch the TS maps to apply meant that *all*
ts_config in the class-level TS map table were used, not just
the ones that applied to the particular class.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/030.schema.metabib.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.function.grab_correct_ts_maps.sql [new file with mode: 0644]