[Koha-devel] Zebra config problem (still 1)
Adam Dickmeiss
adam at indexdata.dk
Fri Feb 3 22:56:53 CET 2006
Paul POULAIN wrote:
> OK guys, the problem with CQL2RPN seems solved.
>
> But the other one is still here.
>
> I explain again (sorry to bug you, but i'm really stuck) :
>
> zebra.cfg is :
> ================================
> profilePath: ${srcdir:-.}:/usr/local/share/idzebra/tab/
> attset: bib1.att
> attset: explain.att
> recordId: (bib1, Identifier-standard)
> recordType: grs.xml
[snip]
> xpath disable
> all any
> melm 090$a identifier-standard,identifier-standard:p
> melm 700 author,author:p
[snip]
> cwd=/home/paul/koha.dev/head/misc/zebra/unimarc
> 15:40:34-03/02 zebrasrv(1) [log] record 0 type XML
> 15:40:34-03/02 zebrasrv(1) [log] 3129 bytes:
> <?xml version="1.0" encoding="UTF-8"?>
> <collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.l ...
Your root element is collection. Not record. I don't think melm will
match that. Had you used record as root element - it should do it.
It's always a good idea to try things out with
zebraidx -s update testrec.xml
and see what gets matched.. (Look for the Idx: lines).
/ Adam
> 15:40:34-03/02 zebrasrv(1) [warn] Record didn't contain match fields in
> (bib1, identifier-standard)
> 15:40:34-03/02 zebrasrv(1) [warn] Bad match criteria (recordID)
> 15:40:34-03/02 zebrasrv(1) [log] zebra_update_record returned res=1
> 15:40:34-03/02 zebrasrv(1) [warn] zebra_update_record failed r=1
> 15:40:34-03/02 zebrasrv(1) [log] zebra_end_trans
> 15:40:34-03/02 zebrasrv(1) [log] sorting section 1
> 15:40:34-03/02 zebrasrv(1) [log] Iterations . . . 36
> 15:40:34-03/02 zebrasrv(1) [log] Distinct words . 18
> 15:40:34-03/02 zebrasrv(1) [log] Updates. . . . . 14
> 15:40:34-03/02 zebrasrv(1) [log] Deletions. . . . 2
> 15:40:34-03/02 zebrasrv(1) [log] Insertions . . . 2
> 15:40:34-03/02 zebrasrv(1) [log][app2] zebra_register_close p=0x8146570
> 15:40:34-03/02 zebrasrv(1) [log] Records: 0 i/u/d 0/0/0
> 15:40:34-03/02 zebrasrv(1) [log] user/system: 1/0
> 15:40:34-03/02 zebrasrv(1) [request] EsRequest ERROR 224 update_record
> failed
> 15:40:34-03/02 zebrasrv(1) [session] Connection closed by client
>
>
> If I remove the recordId line in zebra.cfg, everything goes well, except
> I need this line to be able to modify my records !
>
> PS : bib1 is the standard bib1.att file, containing :
> att 1007 Identifier-standard
More information about the Koha-devel
mailing list