X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=examples%2Fmarcxml%2FREADME;h=a222990538900678cea79379f1464da69942dc73;hb=6b553b7b42f0a2940c9765b9811e5db44ba8265f;hp=dda140a6ea39979c887346428884ed7e6b719b40;hpb=060faf0d33d68d3f2405ec4512d52026e1e02b31;p=idzebra-moved-to-github.git diff --git a/examples/marcxml/README b/examples/marcxml/README index dda140a..a222990 100644 --- a/examples/marcxml/README +++ b/examples/marcxml/README @@ -9,3 +9,44 @@ environment. http://www.loc.gov/standards/marcxml/ + +To run these examples, try this: + + +../../index/zebraidx init +../../index/zebraidx update collection-*.xml +../../index/zebrasrv + +then start yaz-client and search + +Z> open localhost:9999 +Z> scan @attr 1=4 "" +Z> find @attr 1=4 aida +Z> form xml +Z> elem dc +Z> s 1+1 +Z> elem marc +Z> s 1+1 +Z> elem mads +Z> s 1+1 +Z> elem mods +Z> s 1+1 + +To see the zebra system internal info on this record, issue + +Z> elem zebra +Z> s 1+1 + +To see how this record has been indexed, try +Z> elem index +Z> s 1+1 + +The indexes can also be acessed using the string names: +Scan 'Author-name-personal' as words +Z> scan @attr 1=Author-name-personal de + +Scan 'Author-name-personal' as phrase +Z> scan @attr 1=Author-name-personal @attr 4=1 @attr 6=2 de + + +