[Koha] Zebra: only can index in XML format. Please help.

hoa lean anhoale at yahoo.com
Wed Apr 20 14:28:56 NZST 2011


Thanks a lot Tomas for your help again,
 
I edit the bib1.att and records.abs as you advised, now there are no missing attributes like ‘any’ anymore.
 
 
koha at koha:/usr/webpages/koha/bin/migration_tools> ./rebuild_zebra.pl -a –v -r
Zebra configuration information
================================
Zebra biblio directory      = /var/lib/koha/zebradb/biblios
Zebra authorities directory = /var/lib/koha/zebradb/authorities
Koha directory              = /usr/webpages/koha/intranet/cgi-bin
BIBLIONUMBER in :     999$c
BIBLIOITEMNUMBER in : 999$d
================================
====================
exporting authority
====================
101..................................................................................................
Records exported: 149
====================
REINDEXING zebra
====================
09:47:00-20/04 zebraidx(27948) [log] zebra_start 2.0.43 abd433d1a315576cf1f4a53f2c70365f9a76477f
09:47:00-20/04 zebraidx(27948) [log] config /etc/koha/zebradb/zebra-authorities.cfg
09:47:00-20/04 zebraidx(27948) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-marc.so
09:47:00-20/04 zebraidx(27948) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-safari.so
09:47:00-20/04 zebraidx(27948) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-text.so
09:47:00-20/04 zebraidx(27948) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-alvis.so
09:47:00-20/04 zebraidx(27948) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-dom.so
09:47:00-20/04 zebraidx(27948) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-xml.so
09:47:00-20/04 zebraidx(27948) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-regx.so
09:47:00-20/04 zebraidx(27948) [log] enabling shadow spec=/var/lib/koha/zebradb/authorities/shadow:1G
09:47:00-20/04 zebraidx(27948) [log] cache_fname = /var/lib/koha/zebradb/authorities/shadow/cache
09:47:00-20/04 zebraidx(27948) [log] dir /tmp/Ng8hIKCZHB/authority
09:47:00-20/04 zebraidx(27948) [log] update grs.marcxml.record /tmp/Ng8hIKCZHB/authority/exported_records 0
09:47:00-20/04 zebraidx(27948) [log] update grs.marcxml.record /tmp/Ng8hIKCZHB/authority/exported_records 377
09:47:00-20/04 zebraidx(27948) [log] update grs.marcxml.record /tmp/Ng8hIKCZHB/authority/exported_records 743
…
09:47:01-20/04 zebraidx(27948) [log] update grs.marcxml.record /tmp/Ng8hIKCZHB/authority/exported_records 60862
09:47:01-20/04 zebraidx(27948) [log] update grs.marcxml.record /tmp/Ng8hIKCZHB/authority/exported_records 61084
09:47:01-20/04 zebraidx(27948) [log] update grs.marcxml.record /tmp/Ng8hIKCZHB/authority/exported_records 61307
09:47:01-20/04 zebraidx(27948) [log] update grs.marcxml.record /tmp/Ng8hIKCZHB/authority/exported_records 61568
09:47:01-20/04 zebraidx(27948) [log] Iterations: isam/dict 8/2
09:47:01-20/04 zebraidx(27948) [log] Dict: inserts/updates/deletions: 1/1/0
09:47:01-20/04 zebraidx(27948) [log] Records: 149 i/u/d 0/149/0
09:47:01-20/04 zebraidx(27948) [log] zebra_stop: 0.63 0.09 0.03
09:47:01-20/04 zebraidx(27950) [log] zebra_start 2.0.43 abd433d1a315576cf1f4a53f2c70365f9a76477f
09:47:01-20/04 zebraidx(27950) [log] config /etc/koha/zebradb/zebra-authorities.cfg
09:47:01-20/04 zebraidx(27950) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-marc.so
09:47:01-20/04 zebraidx(27950) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-safari.so
09:47:01-20/04 zebraidx(27950) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-text.so
09:47:01-20/04 zebraidx(27950) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-alvis.so
09:47:01-20/04 zebraidx(27950) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-dom.so
09:47:01-20/04 zebraidx(27950) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-xml.so
09:47:01-20/04 zebraidx(27950) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-regx.so
09:47:01-20/04 zebraidx(27950) [log] enabling shadow spec=/var/lib/koha/zebradb/authorities/shadow:1G
09:47:01-20/04 zebraidx(27950) [log] cache_fname = /var/lib/koha/zebradb/authorities/shadow/cache
09:47:01-20/04 zebraidx(27950) [log] zebra_stop: 0.40 0.03 0.16
skipping biblios
====================

CLEANING
 
Besides, I try this command
 
./link_bibs_to_authorities.pl
and the result is
 
Could not retrieve bib 21 from the database - record is corrupt.
... processed 100 records
 
Bib authority heading linking report
------------------------------------
Number of bibs checked:       127
Number of bibs modified:      0
Number of bibs with errors:   1
 
But I still cannot search any thing on the Authority section. Does it mean that there are some authority record in the database or the data insert went wrong ?
I wonder if there are some configuration sections that I need to check to make sure the authority search are on. 
 
Best Regards,

Ann

--- On Mon, 18/4/11, Tomas Cohen Arazi <tomascohen at gmail.com> wrote:


From: Tomas Cohen Arazi <tomascohen at gmail.com>
Subject: Re: [Koha] Zebra: only can index in XML format. Please help.
To: "hoa lean" <anhoale at yahoo.com>
Received: Monday, 18 April, 2011, 10:29 PM


Yes, we had problems with DOM for authorities in a MARC21 context, so I told you to switch to GRS1.

That warning you get has to do with the index 'any' not being set in your att set. You should rebuild your authorities database so the change from dom to grs1 applies, it is triggered like this:

su - koha -c "KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -a -v -r"

Note the '-r'. You could also restart your zebra daemon:

# service koha-zerba-daemon restart

in recent versions of ubuntu.

As for the 'any' index not found in att set, i attach our zera config files, which we corrected fr that purpose.

Note:
- bib1.att belongs to '/etc/koha/zebradb/authorities/etc'
- record.abs blongs to '/etc/koha/zebradb/marc_defs/marc21/authorities'

Regards
To+




On Sun, Apr 17, 2011 at 7:39 PM, hoa lean <anhoale at yahoo.com> wrote:











Thank Tomas,
 
I did what you suggested, and still cannot see any result. It seems that you suggest me to change from DOM to GRS1.
The results from the reindex -a -v are:
 

Zebra configuration information
================================
Zebra biblio directory      = /var/lib/koha/zebradb/biblios
Zebra authorities directory = /var/lib/koha/zebradb/authorities
Koha directory              = /usr/webpages/koha/intranet/cgi-bin
BIBLIONUMBER in :     999$c
BIBLIOITEMNUMBER in : 999$d
================================
====================
exporting authority
====================
101..................................................................................................
Records exported: 149
====================
REINDEXING zebra
====================
09:47:23-18/04 zebraidx(21663) [log] zebra_start 2.0.43 abd433d1a315576cf1f4a53f2c70365f9a76477f
09:47:23-18/04 zebraidx(21663) [log] config /etc/koha/zebradb/zebra-authorities.cfg
09:47:23-18/04 zebraidx(21663) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-marc.so
09:47:23-18/04 zebraidx(21663) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-safari.so
09:47:23-18/04 zebraidx(21663) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-text.so
09:47:23-18/04 zebraidx(21663) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-alvis.so
09:47:23-18/04 zebraidx(21663) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-dom.so
09:47:23-18/04 zebraidx(21663) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-xml.so
09:47:23-18/04 zebraidx(21663) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-regx.so
09:47:23-18/04 zebraidx(21663) [log] enabling shadow spec=/var/lib/koha/zebradb/authorities/shadow:1G
09:47:23-18/04 zebraidx(21663) [log] cache_fname = /var/lib/koha/zebradb/authorities/shadow/cache
09:47:23-18/04 zebraidx(21663) [log] dir /tmp/coujdZdf_R/authority
09:47:23-18/04 zebraidx(21663) [warn] Index 'any' not found in attset(s)
09:47:23-18/04 zebraidx(21663) [log] update grs.marcxml.record /tmp/coujdZdf_R/authority/exported_records 0
09:47:23-18/04 zebraidx(21663) [log] update grs.marcxml.record /tmp/coujdZdf_R/authority/exported_records 377
09:47:23-18/04 zebraidx(21663) [log] update grs.marcxml.record /tmp/coujdZdf_R/authority/exported_records 743
…
09:47:23-18/04 zebraidx(21663) [log] update grs.marcxml.record /tmp/coujdZdf_R/authority/exported_records 61307
09:47:23-18/04 zebraidx(21663) [log] update grs.marcxml.record /tmp/coujdZdf_R/authority/exported_records 61568
09:47:23-18/04 zebraidx(21663) [log] Iterations: isam/dict 8/2
09:47:23-18/04 zebraidx(21663) [log] Dict: inserts/updates/deletions: 1/0/1
09:47:23-18/04 zebraidx(21663) [log] Records: 149 i/u/d 0/149/0
09:47:23-18/04 zebraidx(21663) [log] zebra_stop: 0.41 0.10 0.04
09:47:23-18/04 zebraidx(21665) [log] zebra_start 2.0.43 abd433d1a315576cf1f4a53f2c70365f9a76477f
09:47:23-18/04 zebraidx(21665) [log] config /etc/koha/zebradb/zebra-authorities.cfg
09:47:23-18/04 zebraidx(21665) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-marc.so
09:47:23-18/04 zebraidx(21665) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-safari.so
09:47:23-18/04 zebraidx(21665) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-text.so
09:47:23-18/04 zebraidx(21665) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-alvis.so
09:47:23-18/04 zebraidx(21665) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-dom.so
09:47:23-18/04 zebraidx(21665) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-xml.so
09:47:23-18/04 zebraidx(21665) [log] Loaded filter module /usr/lib64/idzebra-2.0/modules/mod-grs-regx.so
09:47:23-18/04 zebraidx(21665) [log] enabling shadow spec=/var/lib/koha/zebradb/authorities/shadow:1G
09:47:23-18/04 zebraidx(21665) [log] cache_fname = /var/lib/koha/zebradb/authorities/shadow/cache
09:47:23-18/04 zebraidx(21665) [log] zebra_stop: 0.18 0.01 0.01
skipping biblios
====================
CLEANING
====================
 
I just wonder does the result show any errors that I cannot figure out beside the09:47:23-18/04 zebraidx(21663) [warn] Index 'any' not found in attset(s)

Really appreciate your helps.
 
Regards,

--- On Fri, 15/4/11, Tomas Cohen Arazi <tomascohen at gmail.com> wrote:


From: Tomas Cohen Arazi <tomascohen at gmail.com>
Subject: Re: [Koha] Zebra: only can index in XML format. Please help.
To: "hoa lean" <anhoale at yahoo.com>
Cc: "Chris Cormack" <chrisc at catalyst.net.nz>, koha at lists.katipo.co.nz
Received: Friday, 15 April, 2011, 6:42 PM





2011/4/14 hoa lean <anhoale at yahoo.com>
>
> Thank you Chris,
>
>
>
> I run as you suggested, but still cannot use the Authority Search.
[snip]
>
> 13:09:59-15/04 zebraidx(12757) [log] config /etc/koha/zebradb/zebra-authorities-dom.cfg

Try editing your '/etc/koha/koha-conf.xml' file and replace inside the section

<server id="authorityserver"  listenref="authorityserver" >

this way:
<config>/etc/koha_bmayor/zebradb/zebra-authorities-dom.cfg</config>
with
<config>/etc/koha_bmayor/zebradb/zebra-authorities.cfg</config>

and:
<xi:include href="/etc/koha_bmayor/zebradb/retrieval-info-auth-dom.xml"
with
<xi:include href="/etc/koha_bmayor/zebradb/retrieval-info-auth-grs1.xml"


And then reindex and try your search again.

Regards
To+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20110419/aa030eac/attachment-0001.htm 


More information about the Koha mailing list