Sha256: 98cf6cd79f9306d96b363c6b3a6c85befbddf1ef9385471f48bcd2b7c450332c
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 KB
Contents
h1. Very simple setup of local zebra server These instructions are probably incomplete for this release. Please let me know if you find errors. install all the dependencies to zcc and confirm that it is working install "zebra":http://www.indexdata.dk/zebra/ If using Debian or RedHat it is suggested that you add the indexdata repositories. <pre syntax="ruby"> $ cd ~/.zcc $ cp -r /var/lib/gems/1.8/gems/zcc-0.0.3/examples/zebra . $ cd zebra $ zebraidx update ~/.zcc/zebra/records $ zebrasrv & $ yaz-client localhost:9999/zcc Z> f @attr 1=4 theology Z> show 1 </pre> You may want to open up a different terminal as zebrasrv (the server) will output messages to the terminal when you search it. If you see a record displayed then it works! Congratulations. now you can configure your local zserver in the zcc.yaml file in ~/.zcc. Add (or uncomment) this line: <pre>- [localhost, 9999, zcc]</pre> When you want to add records to the zebra database you will need to return to your ~/.zcc/zebra directory and reindex the whole bunk of records. Just drop marcxml records anywhere in the directory below ~/.zcc/zebra/records and they will be indexed. To make this the default place to save records choose 'zebra' under save_record_syntax in zcc.yaml. This reindexing could take some time, especially if you have a large number of files. We would like to add extended services for record insert and update to ruby-zoom (complete the ZOOM C-binding) so please let me know if you're a developer willing to do the work (jronallo+zoom@gmail.com). But for now you'll have to do it the slow way: <pre syntax="ruby">$ cd ~/.zcc/zebra $ zebraidx update ~/.zcc/zebra/records</pre> If you shutdown your computer make sure to restart the zebrasrv! If port 9999, the default zebrasrv port is exposed to the world, others will be able to search your database as well. You may find this a good thing :) or it may be a security risk?
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zcc-0.0.3 | website/zebra.txt |