[Koha-bugs] [Bug 25873] Elasticsearch - Records with malformed data are not indexed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 25 09:42:22 CEST 2020


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

--- Comment #1 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 106276
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106276&action=edit
Bug 25873: Ignore malformed data for Elasticsearch integer fields

If we try to put malformed data into an integer field, Elasticsearch
rejects the whole document.
Setting 'ignore_malformed' to true allows to ignore malformed data and
process the other fields of the document normally

https://www.elastic.co/guide/en/elasticsearch/reference/7.8/ignore-malformed.html

Test plan:
* Without the patch
  1. In search engine configuration, change the type of a text field to
  'Number' (for instance 'title')
  2. misc/search_tools/rebuild_elasticsearch.pl -d -b
  3. See that the index is empty (unless you have titles consisting only
  of digits)
* With the patch
  1. misc/search_tools/rebuild_elasticsearch.pl -d -b
  2. Now records are correctly indexed

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list