LP#1947173: Clean up bad cataloging pot hole user/miker/lp-1947173-symspell-ingest-speed
authorMike Rylander <mrylander@gmail.com>
Wed, 20 Oct 2021 20:22:37 +0000 (16:22 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 20 Oct 2021 20:22:37 +0000 (16:22 -0400)
commitbcf528c7136e6af2dd941cb1c828c29685ba3405
treeda3814fc9d1f55048e9606015a3b511ac829765e
parent37660a3f70de6301d147141dd9c6464fb278f3fb
LP#1947173: Clean up bad cataloging pot hole

If a MARC record has effectively empty fields (all space or punctuation)
then it's possible to stumble over a NULL text array when parsing
content for the symspell dictionary.  This commit checks for that
condition and returns early to avoid the problem.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.symspell-speed-ingest.sql