[Koha] OPAC search results -No

Petrus B. van Bork pvanbork at outerline.com
Sun Feb 15 10:37:42 NZDT 2009


Dear List-Colleagues:

There was no follow up reply to the post "OPAC search results -No" (from 
December '08) so I am posting our results from dealing with this  issue:

Note: Sunita was running Fedora and we are running Redhat which is similar.

* no filters load/no records written in rebuild_zebra

* OS:Redhat or Fedora (possibly CentOS) --  

* zebraidx (5810) [warn] No such record type: grs.marcxml.record

* ERR109 in zebrasrv

 

Possibly specific to: Redhat, Fedora and possibly CentOS

Symptoms:

ERR109 when querying running copy of zebrasrv

 

Text Box: The structure attribute specifies the type of search term. 
This causes the search to be mapped on different Zebra internal indexes, 
which must have been defined at index time. Source: Zebra -- Users Guide 
and Reference at: 
http://www.indexdata.dk/zebra/doc/querymodel-rpn.tkl#querymodel-bib1-structure



109 is a structure attribute for numeric string in Zebra (...it tells 
Zebra what format to use when indexing Koha data)

While there are a number of causes for this error (including a bad ZOOM 
compile) we are assuming a good install of all perl modules and components.

 If you are running Fedora or Redhat (...and likely CentOS) and if your

"rebuild_Zebra.pl" script will run and you /have /run it and its output 
looks similar too:

 

Zebra configuration information

================================

Zebra biblio directory      = /var/lib/koha/zebradb/biblios

Zebra authorities directory = /var/lib/koha/zebradb/authorities

Koha directory              = /usr/share/koha/intranet/cgi-bin

BIBLIONUMBER in :     999$c

BIBLIOITEMNUMBER in : 999$d

================================

skipping authorities

====================

exporting biblio

====================

1.

Records exported: 2

====================

REINDEXING zebra

====================

16:57:45-15/12 zebraidx(11218) [log] zebra_start 2.0.32

/etc/koha/zebradb/zebra-biblios.cfg

16:57:45-15/12 zebraidx(11218) [log] enabling shadow

spec=/var/lib/koha/zebradb/biblios/shadow:4G

16:57:45-15/12 zebraidx(11218) [log] cache_fname =

/var/lib/koha/zebradb/biblios/shadow/cache

16:57:45-15/12 zebraidx(11218) [log] zebra_stop: 0.08 0.00 0.00

16:57:45-15/12 zebraidx(11219) [log] zebra_start 2.0.32

/etc/koha/zebradb/zebra-biblios.cfg

16:57:45-15/12 zebraidx(11219) [log] dir /tmp/krk6rYaZGR/biblio

16:57:45-15/12 zebraidx(11219) [warn] No such record type:

grs.marcxml.record

16:57:45-15/12 zebraidx(11219) [log] Iterations: isam/dict 64/26

16:57:45-15/12 zebraidx(11219) [log] Dict: inserts/updates/deletions: 26/0/0

16:57:45-15/12 zebraidx(11219) [log] Records: 0 i/u/d 0/0/0

16:57:45-15/12 zebraidx(11219) [log] zebra_stop: 0.08 0.00 0.00

====================

CLEANING

 

...you have a specific problem not related to bad installation.

The clues are twofold: 

1)      ...note that there are no filter module's loaded, they should 
look like:

 /14:222:51-14/02 zebraidx (4531) [log] Loaded filter module 
/usr/local/lib/idzebra02.0/modules/mod-grs-xml.so/

 2)      these two lines in your rebuild_zebra output:

 /16:57:45-15/12 zebraidx(11219) [log] dir /tmp/krk6rYaZGR/biblio/

/16:57:45-15/12 zebraidx(11219) [warn] No such record type:/

/grs.marcxml.record/

 

NO filter modules are loading and -- of course -- as a result, 
zebra_build can not read grs.marcxml.record processed data. 

 Result: no index and no ability to search OPAC etc.

Filters should appear right under:
 

REINDEXING zebra

===============

....they should look like...
 

/14:222:51-14/02 zebraidx (4531) [log] Loaded filter module 
/usr/local/lib/idzebra02.0/modules/mod-grs-xml.so/
 

...and so forth for another six filters....

 

Solution:

 Go to your zebra-biblios.cfg file (probably at: //etc/koha/zebradb//

 Look in this file for the lines:

 /# modulePath -- where to look for loadable zebra modules/

/Modules/

/modulePath: /usr/lib/idzebra-2.0/modules/

/ /
...the default path is incorrect in RHEL5/Fedora etc. (at least in some 
installs)

 ...it should read: /usr/local/lib/idzebra-2.0/modules (or whatever is 
right on your system)

 /Newbie tip: verify this, for yourself, by typing "locate mod-alvis.so" 
at a prompt/

/Example: #locate mod-alvis.so/

/...the result will show the directory path to mod-alvis which is one of 
the filters you are not loading into rebuild_zebra.pl/

 Fix the path in .cfg file, run rebuild_zebra.pl and then restart 
zebrasrv and your OPAC should run!

I really hope this helps some one we had a lot of problems pinning the 
issue down.

Best,

Petrus
Saugeen Library Consortium

 

 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20090214/a4ec4b01/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clip_image001.gif
Type: image/gif
Size: 2341 bytes
Desc: not available
Url : http://lists.katipo.co.nz/pipermail/koha/attachments/20090214/a4ec4b01/attachment-0001.gif 


More information about the Koha mailing list