X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=zebra%2FREADME;h=cfa8a2e1a620a39d2f74fe4edb88aab9c98bbd26;hp=411f04ac0c25934f4573364c23457aaffee4c60b;hb=c58001648aac84080f3342a1956416cea49fcd5e;hpb=2ee5bb696499e86b8e15501d19fdcc998e0d307e diff --git a/zebra/README b/zebra/README index 411f04a..cfa8a2e 100644 --- a/zebra/README +++ b/zebra/README @@ -1,4 +1,4 @@ -$Id: README,v 1.1 2006-04-13 14:53:18 mike Exp $ +$Id: README,v 1.10 2006-06-16 14:25:32 mike Exp $ What's what in this directory: @@ -28,6 +28,10 @@ pqf.properties -- The specification for how CQL queries are translated supplied in the YAZ distribution: we'd just use that if there was a reliable way to discover where it is. +ezeerex2pqfproperties.pl -- An in-progress script to automatically + generate the pqf.properties file from an extended ZeeRex + record. Not yet in use. + zebra.cfg -- Zebra-specific configuration, including the location of the register files, the location of the XSLT filter configuration (filterconf.xml), etc. @@ -41,19 +45,39 @@ zeerex2index.xsl -- The indexing stylesheet for ZeeRex records. zeerex2zeerex.xsl -- The "no-op" stylesheet for presenting ZeeRex records. +zeerex2id.xsl -- A trivial stylesheet that just yields the record + identifier (not as an XML document). + +profile -- Notes on the indexes in the ZeeRex profile, with + indications of whether they are yet supported by the Zebra + configuration in this directory. + +records -- A subdirectory containing ZeeRex records to be added to the + database. These were harvested from Index Data's existing + target-test database using + scp -r bagel.indexdata.dk:/home/perhans/targettest/xml records + processed to add the missing namespace, and archived into a + single file records.tar.gz, which needs to be unpacked: + tar xfz records.tar.gz + db -- A subdirectory containing the actual database: register files, dictionaries and suchlike. +form.html -- a simple HTML search form that submits SRU queries to a + server running on local port 1313. + -- To create the database and start the server: xmllint --noout --schema zeerex-2.0.xsd zeerex.xml # Verify xsltproc zeerex2index.xsl zeerex.xml # Check what indexer will see -zebraidx -c zebra.cfg init # Remove any existing database records -zebraidx -c zebra.cfg update zeerex.xml # Our only record! -zebraidx -c zebra.cfg commit +zebraidx init # Remove any existing database records +zebraidx update zeerex.xml # The single record describe this DB, or: +zebraidx update records # The many records harvested from Index Data +zebraidx commit zebrasrv -f yazserver.xml Then interrogate the database with SRU URLs such as: - http://localhost:1313/IR-Explain--1?version=1.1&operation=searchRetrieve&x-pquery=@attr%201=net:host%20localhost \ No newline at end of file + http://localhost:1313/IR-Explain---1?version=1.1&operation=searchRetrieve&maximumRecords=10&recordSchema=zeerex&query=net.protocol=sru +