X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=doc%2Ftutorial.xml;h=8d79bd866b5deaf53142f9ce14f3f1354ccbca29;hp=edcd5fd0d6779977b2616efcafdab86dd44a8791;hb=dcda88860b03641b6900d43135ca769f005105e8;hpb=97a7adeb9e5059463f039495cc01cfa448463a27 diff --git a/doc/tutorial.xml b/doc/tutorial.xml index edcd5fd..8d79bd8 100644 --- a/doc/tutorial.xml +++ b/doc/tutorial.xml @@ -1,7 +1,7 @@ Tutorial - + A first &acro.oai; indexing example @@ -15,22 +15,22 @@ Go to the examples/oai-pmh subdirectory of the distribution archive, or make a deep copy of the Debian installation directory - /usr/share/idzebra-2.0.-examples/oai-pmh. + /usr/share/idzebra-2.0-examples/oai-pmh. An XML file containing multiple &acro.oai; records is located in the sub - directory examples/oai-pmh/data. + directory examples/oai-pmh/data. - + Additional OAI test records can be downloaded by running a shell - script (you may want to abort the script when you have waitet - longer than your coffe brews ..). + script (you may want to abort the script when you have waited + longer than your coffee brews ..). cd data ./fetch_OAI_data.sh cd ../ - + To index these &acro.oai; records, type: zebraidx-2.0 -c conf/zebra.cfg init @@ -40,24 +40,24 @@ In case you have not installed zebra yet but have compiled the binaries from this tarball, use the following command form: - ../../index/zebraidx -c conf/zebra.cfg this and that + ../../index/zebraidx -c conf/zebra.cfg this and that On some systems the &zebra; binaries are installed under the generic names, you need to use the following command form: - zebraidx -c conf/zebra.cfg this and that + zebraidx -c conf/zebra.cfg this and that - + In this command, the word update is followed by the name of a directory: zebraidx updates all - files in the hierarchy rooted at data. - The command option + files in the hierarchy rooted at data. + The command option -c conf/zebra.cfg points to the proper configuration file. - + You might ask yourself how &acro.xml; content is indexed using &acro.xslt; stylesheets: to satisfy your curiosity, you might want to run the @@ -86,17 +86,17 @@ return records in the &acro.xml; format only. The indexing machine did the splitting into individual records just behind the scenes. - + Searching the &acro.oai; database by web service - + &zebra; has a build-in web service, which is close to the &acro.sru; standard web service. We use it to access our new - database using any &acro.xml; enabled web browser. + database using any &acro.xml; enabled web browser. This service is using the &acro.pqf; query language. In a later section we show how to run a fully compliant &acro.sru; server, @@ -105,7 +105,7 @@ Searching and retrieving &acro.xml; records is easy. For example, - you can point your browser to one of the following url's to + you can point your browser to one of the following URLs to search for the term the. Just point your browser at this link: - These URL's woun't work unless you have indexed the example data + These URLs won't work unless you have indexed the example data and started an &zebra; server as outlined in the previous section. In case we actually want to retrieve one record, we need to alter - our URl to the following + our URL to the following http://localhost:9999/?version=1.1&operation=searchRetrieve&x-pquery=the&startRecord=1&maximumRecords=1&recordSchema=dc @@ -138,7 +138,7 @@