[librecat-dev] loading MARC records
Patrick Hochstenbach
Patrick.Hochstenbach at UGent.be
Fri Mar 24 16:15:14 CET 2017
ElasticSearch versions >= 2.0 don't allow for underscore fields. You need to add the key_prefix option to your store.
E.g.
$ catmandu import MARC --type XML to ElasticSearch --index_name almabib --bag bib --key-prefix bib_ < marc.xml
Or create a catmandu.yml configuration file:
---
importer:
marcxml:
package: MARC
options:
type: XML
store:
almabib:
package: ElasticSearch
options:
index_name: almabib
bag: bib
key_prefix: bib_
...
and then do:
$ catmandu import -v marcxml to almabib < marc.xml
See also: https://metacpan.org/pod/Catmandu::Store::ElasticSearch#COMPATIBILITY
Patrick
________________________________________
From: librecat-dev-bounces at lists.uni-bielefeld.de <librecat-dev-bounces at lists.uni-bielefeld.de> on behalf of Christoph Krempe <krempe at ub.fu-berlin.de>
Sent: Friday, March 24, 2017 2:40 PM
To: librecat-dev at lists.uni-bielefeld.de
Subject: [librecat-dev] loading MARC records
Hi *,
I want to load a bunch of MARCXML bibliographic records into
ElasticSearch without any additional transformation using catmandu as
loader.
With
catmandu import MARC --type XML to ElasticSearch --index_name almabib
--bag bib < marc.xml
I get an empty ES index and error messages like
org.elasticsearch.index.mapper.MapperParsingException: Field [_id] is a
metadata field and cannot be added inside a document. Use the index API
request parameters.
Any idea how to get rid of this errors?
Thanks!
--
Mit freundlichen Grüßen
Ch. Krempe
__________________________________________________
Christoph Krempe
Abt. Datenverarbeitung / Fachreferat Philosophie
Universitätsbibliothek der FU Berlin
Garystraße 39
D-14195 Berlin
Tel.: 030 83854583
Fax: 030 838454583
More information about the librecat-dev
mailing list