X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fquickstart.xml;h=1aae924cba579aa988a297491a010d5c99b9804c;hb=7c3a0352f0492609a3b6b26b63a72b0b2d207aab;hp=8cac9bce2f64fb64b60bb19edd8a7ac0ed72903e;hpb=4fe772289b1ab968655c27b144d08fc69c113fd9;p=idzebra-moved-to-github.git diff --git a/doc/quickstart.xml b/doc/quickstart.xml index 8cac9bc..1aae924 100644 --- a/doc/quickstart.xml +++ b/doc/quickstart.xml @@ -1,49 +1,27 @@ - + Quick Start - - - FIXME - Start with the new improved example scripts that run - without any configuration file changes! - - In this section, we will test the system by indexing a small set of sample - GILS records that are included with the software distribution. Go to the - test/gils subdirectory of the distribution archive. - There you will find a configuration - file named zebra.cfg with the following contents: - - - # Where are the YAZ tables located. - profilePath: ../../../yaz/tab ../../tab - - # Files that describe the attribute sets supported. - attset: bib1.att - attset: gils.att - + + In this section, we will test the system by indexing a small set of + sample GILS records that are included with the Zebra distribution, + running Zebra a server against the newly created database, and + searching the indexes with a client that connects to that server. - - Now, edit the file and set profilePath to the path of the - YAZ profile tables (sub directory tab of the YAZ - distribution archive). - - - - The 48 test records are located in the sub directory - records. To index these, type: - + Go to the examples/gils subdirectory of the + distribution archive. The 48 test records are located in the sub + directory records. To index these, type: - $ ../../index/zebraidx -t grs.sgml update records + zebraidx update records - In the command above the option -t specified the record - type — in this case grs.sgml. - The word update followed - by a directory root updates all files below that directory node. + In this command, the word update is followed + by the name of a directory: zebraidx updates all + files in the hierarchy rooted at that directory. @@ -51,7 +29,7 @@ fire up a server. To start a server on port 2100, type: - $ ../../index/zebrasrv tcp:@:2100 + zebrasrv @:2100 @@ -61,19 +39,18 @@ named Default. The database contains records structured according to the GILS profile, and the server will - return records in either either USMARC, GRS-1, or SUTRS depending - on what your client asks for. + return records in USMARC, GRS-1, or SUTRS format depending + on what the client asks for. - To test the server, you can use any Z39.50 client (1992 or later). - For instance, you can use the demo client that comes with YAZ: Just - cd to the client subdirectory of the YAZ distribution - and type: + To test the server, you can use any Z39.50 client. + For instance, you can use the demo command-line client that comes + with YAZ: - $ ./yaz-client tcp:localhost:2100 + yaz-client localhost:2100 @@ -81,8 +58,7 @@ When the client has connected, you can type: - - + Z> find surficial Z> show 1 @@ -90,8 +66,9 @@ - The default retrieval syntax for the client is USMARC. To try other - formats for the same record, try: + The default retrieval syntax for the client is USMARC, and the + default element set is F (``full record''). To + try other formats and element sets for the same record, try: @@ -108,14 +85,18 @@ You may notice that more fields are returned when your - client requests SUTRS or GRS-1 records. When retrieving GILS records, - this is normal - not all of the GILS data elements have mappings in + client requests SUTRS, GRS-1 or XML records. + This is normal - not all of the GILS data elements have mappings in the USMARC record format. - If you've made it this far, there's a good chance that - you've got through the compilation OK. + If you've made it this far, you know that your installation is + working, but there's a certain amount of voodoo going on - for + example, the mysterious incantations in the + zebra.cfg file. In order to help us understand + these fully, the next chapter will work through a series of + increasingly complex example configurations.