https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26522

--- Comment #1 from Nick Clemens <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to