Bug 22829

Summary: Elasticsearch - some blank subfields cause parsing errors during indexing
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P5 - low CC: caroline.cyr-la-rose, ere.maijala, marjorie.barry-vila
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22828
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2019-05-02 11:47:00 UTC
Some fields in the record cause errors during indexing if they exist but are blank

To recreate:
1 - Use the koha sample data or edit a record using the advanced cataloging editor and blank 100$a (probably also shouldn't be allowed)
2 - Save record
3 - Reindex ES
4 - Note you cannot search for the record

bug 22828 will show you the error from ES
Comment 1 Caroline Cyr La Rose 2021-05-12 20:56:47 UTC
I've run into this problem also. I think the records had been migrated from another system and a lot of 245$b were simply blank. ES did not like this.

This is the (very cryptic) error message
Use of uninitialized value $_ in pattern match