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 <[email protected]> wrote:


From: Tomas Cohen Arazi <[email protected]>
Subject: Re: [Koha] Zebra: only can index in XML format. Please help.
To: "hoa lean" <[email protected]>
Cc: "Chris Cormack" <[email protected]>, [email protected]
Received: Friday, 15 April, 2011, 6:42 PM


2011/4/14 hoa lean <[email protected]>
>
> 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+
<yazgfs>
<!-- [scheme:]host[:port][/databaseName] -->
<!-- scheme: tcp, ssl, unix, http, sru -->
<!-- can run all servers on tcp, but the unix socket is faster -->

<listen id="biblioserver" >unix:/var/run/koha/zebradb/bibliosocket</listen>
<listen id="authorityserver" >unix:/var/run/koha/zebradb/authoritysocket</listen>
<!-- uncomment these lines and comment out the above if running on MSWin32 -->
<!--
<listen id="biblioserver" >tcp:localhost:9998/bibliosocket</listen>
<listen id="authorityserver" >tcp:localhost:9999/authoritysocket</listen>
-->
<!-- public server runs on tcp -->
<!-- <listen id="publicserver" >tcp:@:9999</listen> -->

<!-- Settings for special biblio server instance for PazPar2.
     Because PazPar2 only connects to a Z39.50 server using TCP/IP,
     it cannot use the Unix-domain socket that biblioserver uses.
     Therefore, a custom server is defined. -->
<!--
<listen id="mergeserver">tcp:@:11001</listen>
<server id="mergeserver"  listenref="mergeserver"> 
    <directory>/var/lib/koha/zebradb/biblios</directory>
    <config>/etc/koha/zebradb/zebra-biblios.cfg</config>
    <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
</server>
-->

<!-- BIBLIOGRAPHIC RECORDS -->
<server id="biblioserver"  listenref="biblioserver"> 
    <directory>/var/lib/koha/zebradb/biblios</directory>
    <config>/etc/koha/zebradb/zebra-biblios.cfg</config>
    <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
     <!-- <docpath>xsl</docpath> -->
     <!-- <stylesheet>xsl/default.xsl</stylesheet> -->
     <!-- <maximumrecordsize>2000000</maximumrecordsize> -->
     <retrievalinfo>
       <retrieval syntax="usmarc" name="F"/>
       <retrieval syntax="usmarc" name="B"/>
       <retrieval syntax="xml" name="F"/>
       <retrieval syntax="xml" name="B"/>
       <retrieval syntax="xml" name="marcxml"
                  identifier="info:srw/schema/1/marcxml-v1.1">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="dc">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="mods">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="rdfdc">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="rss2">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RSS2.xsl"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="utils">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/>
         </backend>
       </retrieval>
     </retrievalinfo>
    <xi:include href="/etc/koha/zebradb/explain-biblios.xml"
                xmlns:xi="http://www.w3.org/2001/XInclude";>
      <xi:fallback>
      <explain xmlns="http://explain.z3950.org/dtd/2.0/";>
          <serverInfo>
            <host>koha</host>
            <port>9998</port>
            <database>biblios</database>
          </serverInfo>
        </explain>
      </xi:fallback>
    </xi:include>
</server>
<serverinfo id="biblioserver">
        <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn>
        <user>zebrauser</user>    
        <password>zebrapassword</password>
</serverinfo>

<!-- AUTHORITY RECORDS -->
<server id="authorityserver"  listenref="authorityserver" >
    <directory>/var/lib/koha/zebradb/authorities</directory>
    <config>/etc/koha/zebradb/zebra-authorities.cfg</config>
    <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
     <!-- <docpath>xsl</docpath> -->
     <!-- <stylesheet>xsl/default.xsl</stylesheet> -->
     <!-- <maximumrecordsize>2000000</maximumrecordsize> -->
    <xi:include href="/etc/koha/zebradb/retrieval-info-auth-grs1.xml"
                xmlns:xi="http://www.w3.org/2001/XInclude";>
      <xi:fallback>
     <retrievalinfo>
       <retrieval syntax="usmarc" name="F"/>
       <retrieval syntax="usmarc" name="B"/>
       <retrieval syntax="xml" name="marcxml"
                  identifier="info:srw/schema/1/marcxml-v1.1">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="dc">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="mods">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="rdfdc">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/>
         </backend>
       </retrieval>
       <retrieval syntax="xml" name="utils">
         <backend syntax="usmarc" name="F">
           <marc inputformat="marc" outputformat="marcxml"
                 inputcharset="utf-8"/>
           <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/>
         </backend>
       </retrieval>
     </retrievalinfo>
      </xi:fallback>
    </xi:include>
    <xi:include href="/etc/koha/zebradb/explain-authorities.xml"
                xmlns:xi="http://www.w3.org/2001/XInclude";>
      <xi:fallback>
      <explain xmlns="http://explain.z3950.org/dtd/2.0/";>
          <serverInfo>
            <host>koha</host>
            <port>9999</port>
            <database>authorities</database>
          </serverInfo>
        </explain>
      </xi:fallback>
    </xi:include>
</server>
<serverinfo id="authorityserver">
    <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn>
    <user>zebrauser</user>
    <password>zebrapassword</password>
</serverinfo>

<!-- ADDITIONAL KOHA CONFIGURATION DIRECTIVE -->
<!-- db_scheme should follow the DBD driver name --> 
<!-- port info: mysql:3306 Pg:5432 (5433 on Debian) -->
<config>
 <db_scheme>mysql</db_scheme>
 <database>koha</database>
 <hostname>localhost</hostname>
 <port>3306</port>
 <user>kohaadmin</user>
 <pass>kohapassword</pass>
 <biblioserver>biblios</biblioserver>
 <biblioservershadow>1</biblioservershadow>
 <authorityserver>authorities</authorityserver>
 <authorityservershadow>1</authorityservershadow>
 <intranetdir>/usr/webpages/koha/intranet/cgi-bin</intranetdir>
 <opacdir>/usr/webpages/koha/opac/cgi-bin/opac</opacdir>
 <opachtdocs>/usr/webpages/koha/opac/htdocs/opac-tmpl</opachtdocs>
 <intrahtdocs>/usr/webpages/koha/intranet/htdocs/intranet-tmpl</intrahtdocs>
 <includes>/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/</includes>
 <logdir>/var/log/koha</logdir>
 <pazpar2url>http://koha:11002/search.pz2</pazpar2url>
 <install_log>/usr/webpages/koha/misc/koha-install-log</install_log>
 <useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on -->
 <memcached_servers></memcached_servers>
 <memcached_namespace></memcached_namespace>
</config>
</yazgfs>
# Simple Zebra configuration file that defines
# a database with MARCXML records.
# $Id: zebra.cfg,v 1.1.2.2 2006/05/09 12:03:16 rangi Exp $
#
# Where are the config files located?
profilePath:/etc/koha/zebradb/biblios/etc:/etc/koha/zebradb/etc:/etc/koha/zebradb/marc_defs/marc21/biblios:/etc/koha/zebradb/lang_defs/en
# modulePath - where to look for loadable zebra modules
modulePath: /usr/lib64/idzebra-2.0/modules

encoding: UTF-8
# Files that describe the attribute sets supported.
attset: bib1.att
attset: explain.att
attset: gils.att

# systag sysno rank

# Specify record type
# group   .recordType[  .name  ]:  type
# type is split into fundamental type. file-read-type . argument
# http://www.indexdata.dk/zebra/doc/zebra-cfg.tkl
# http://www.indexdata.dk/zebra/doc/grs.tkl

# Can use -g iso2709 to batch index raw iso2709 records in a single or
# multiple files, or marcxml records that are split into separate files
# the trailing .record tells zebraidx to use record.abs
iso2709.recordType:grs.marcxml.record

# Can use -g marcxml to batch index marcxml files
# zebraidx uses record.abs because of <record> is the root element
marcxml.recordType:grs.sgml

# Koha uses grs.xml internally when updating a single record, no idea
# why it knows to use record.abs
recordType:grs.xml

recordId: (bib1,Local-number)
storeKeys:1
storeData:1


# Lock File Area
lockDir: /var/lock/koha/zebradb/biblios
perm.anonymous:ar
perm.zebrauser:rw
passwd: /etc/koha/zebradb/etc/passwd
register: /var/lib/koha/zebradb/biblios/register:4G
shadow: /var/lib/koha/zebradb/biblios/shadow:4G

# Temp File area for result sets
setTmpDir: /var/lib/koha/zebradb/biblios/tmp

# Temp File area for index program
keyTmpDir: /var/lib/koha/zebradb/biblios/key

# Approx. Memory usage during indexing
memMax: 50M
rank:rank-1
truncmax: 1000000000
# Simple Zebra configuration file that defines
# a database with MARCXML records.
# $Id: zebra.cfg,v 1.1.2.2 2006/05/09 12:03:16 rangi Exp $
#
# Where are the config files located?
profilePath:/etc/koha/zebradb/authorities/etc:/etc/koha/zebradb/etc:/etc/koha/zebradb/marc_defs/marc21/authorities:/etc/koha/zebradb/lang_defs/en

encoding: UTF-8
# modulePath - where to look for loadable zebra modules
modulePath: /usr/lib64/idzebra-2.0/modules

# Files that describe the attribute sets supported.
attset: bib1.att
attset: explain.att
attset: gils.att

#systag sysno rank

# Specify record type
# group   .recordType[  .name  ]:  type
# type is split into fundamental type. file-read-type . argument
# http://www.indexdata.dk/zebra/doc/zebra-cfg.tkl
# http://www.indexdata.dk/zebra/doc/grs.tkl

# Can use -g iso2709 to batch index raw iso2709 records in a single or
# multiple files, or marcxml records that are split into separate files
# the trailing .record tells zebraidx to use record.abs
iso2709.recordType:grs.marcxml.record

# Can use -g marcxml to batch index marcxml files
# zebraidx uses record.abs because of <record> is the root element
marcxml.recordType:grs.sgml

# Koha uses grs.xml internally when updating a single record, no idea
# why it knows to use record.abs
recordType:grs.xml

recordId: (bib1,Local-Number)  
# was auth1
storeKeys:1
storeData:1

# Lock File Area
lockDir: /var/lock/koha/zebradb/authorities
perm.anonymous:ar
perm.zebrauser:rw
passwd: /etc/koha/zebradb/etc/passwd
register: /var/lib/koha/zebradb/authorities/register:4G
shadow: /var/lib/koha/zebradb/authorities/shadow:1G 

# Temp File area for result sets
setTmpDir: /var/lib/koha/zebradb/authorities/tmp

# Temp File area for index program
keyTmpDir: /var/lib/koha/zebradb/authorities/key

# Approx. Memory usage during indexing
memMax: 50M
rank:rank-1

<?xml version="1.0" encoding="UTF-8"?>
<retrievalinfo xmlns="http://indexdata.com/yaz";>
  <retrieval syntax="usmarc" name="F"/>
  <retrieval syntax="usmarc" name="B"/>
  <retrieval syntax="xml" name="marcxml"
             identifier="info:srw/schema/1/marcxml-v1.1">
    <backend syntax="usmarc" name="F">
      <marc inputformat="marc" outputformat="marcxml"
            inputcharset="utf-8"/>
    </backend>
  </retrieval>
  <retrieval syntax="xml" name="dc">
    <backend syntax="usmarc" name="F">
      <marc inputformat="marc" outputformat="marcxml"
            inputcharset="utf-8"/>
      <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/>
    </backend>
  </retrieval>
  <retrieval syntax="xml" name="mods">
    <backend syntax="usmarc" name="F">
      <marc inputformat="marc" outputformat="marcxml"
            inputcharset="utf-8"/>
      <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/>
    </backend>
  </retrieval>
  <retrieval syntax="xml" name="rdfdc">
    <backend syntax="usmarc" name="F">
      <marc inputformat="marc" outputformat="marcxml"
            inputcharset="utf-8"/>
      <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/>
    </backend>
  </retrieval>
  <retrieval syntax="xml" name="utils">
    <backend syntax="usmarc" name="F">
      <marc inputformat="marc" outputformat="marcxml"
            inputcharset="utf-8"/>
      <xslt stylesheet="/usr/webpages/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/>
    </backend>
  </retrieval>
</retrievalinfo>
_______________________________________________
Koha mailing list  http://koha-community.org
[email protected]
http://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to