[Koha-bugs] [Bug 26522] Elasticsearch - don't attempt to index record if it cannot be retrieved
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Sep 23 20:52:22 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26522
--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 110614
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110614&action=edit
Bug 26522: Don't index record if no record is retrieved
Currently if we cannot load the marc record, we die. This patch simply skips
the malformed record during indexing
Eventually we should warn or pass back an exception, but we can use
compare_es_to_db.pl to identify problematic records and should fix this
issue to prevent import from dying
To test:
1 - Export or create a bib with malformed data
In sample data search for 'udgave' the record has
942 _6_
2 - Set System preference SearchEngine to Elasticsearch
3 - Import the record
4 - Import fails
5 - Check intranet-error.log, see warning about calling leader on undefined
value
6 - Apply patch
7 - Import again
8 - Success, import succeeds
9 - Search for 'udgave' or term that returns your record
10 - The record should not be findable
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list