X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=zebra%2FREADME;h=afaa88d9e6026f7b08d2f526fec21bb7f9c235c6;hb=ff9fbcf21f911f90bae158ac8942c6bfa377892e;hp=411f04ac0c25934f4573364c23457aaffee4c60b;hpb=2ee5bb696499e86b8e15501d19fdcc998e0d307e;p=irspy-moved-to-github.git diff --git a/zebra/README b/zebra/README index 411f04a..afaa88d 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.6 2006-05-12 16:11:45 mike Exp $ What's what in this directory: @@ -41,7 +41,15 @@ zeerex2index.xsl -- The indexing stylesheet for ZeeRex records. zeerex2zeerex.xsl -- The "no-op" stylesheet for presenting ZeeRex records. -db -- A subdirectory containing the actual database: register files, +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. -- @@ -50,10 +58,12 @@ 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 +