Bug 17546 - Importing records with a matching rules fails when using Elastic
Summary: Importing records with a matching rules fails when using Elastic
Status: RESOLVED DUPLICATE of bug 18131
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: master
Hardware: All All
: P5 - low major (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 14:42 UTC by Kyle M Hall
Modified: 2017-04-03 18:28 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Who signed the patch off:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall 2016-11-03 14:42:04 UTC
If the system preference SearchEngine is set to Elasticsearch, attempting to use matching rules fails with the error:

Can't locate object method "fields" via package "MARC::Record=HASH(0x9ce46a8)" (perhaps you forgot to load "MARC::Record=HASH(0x9ce46a8)"?) at /home/vagrant/kohaclone/C4/Biblio.pm line 2713.

It appears that the contents of the variable assumed to be a MARC::Record object are literally a string and not eh object. I was able to narrow down the issue to something going on in C4::Matcher::get_matches.
Comment 1 Nick Clemens 2017-04-03 18:28:14 UTC

*** This bug has been marked as a duplicate of bug 18131 ***
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17546
bugs.koha-community.org
crawl=CC-MAIN-2020-10
28324
application/http; msgtype=response
sha1:S3JLSD3BLXUEZKLQRCDRMAWUVNEKSZUT
<urn:uuid:cd843079-593a-4fa3-88f4-c4cc0bf9d805>
2020-02-27T16:11:08Z
72.14.190.217
text/html
sha1:QMJPK7SEGH5Z77WULCQ2R3ILYUTVHWHZ
<urn:uuid:6811d854-b3ff-4f82-a078-141051055c24>
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17546
response
<urn:uuid:7c264c46-c860-43ab-9df5-54abdb6fe675>
isPartOf: CC-MAIN-2020-10
publisher: Common Crawl
description: Wide crawl of the web for February 2020
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-36.ec2.internal
software: Apache Nutch 1.16 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.1-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/