July 16, 2004

全文检索系统zebra

zebra.pngZebra是一个高性能的、通用的,对结构化文本进行索引和检索的引擎。它支持的输入数据格式包括 email, XML, MARC等。通过提交精确的布尔检索式,可以得到按相关性排序的全文检索结果。
  它本身带着一个z39.50服务器程序,如果你是在图书情报界工作,就会知道有这么一个服务器是多么方便。但,这也许是它没有提供很多的API的缘故,相比luceneMG来说,就有所不足了。
  它本身按GPL协议发布,能让人轻松地使用它。

下载安装zebra

wget http://ftp.indexdata.dk/pub/zebra/idzebra-1.3.15.tar.gz
tar zxvf idzebra-1.3.15.tar.gz
cd idzebra-1.3.15
./configure
make
make check
su
make install

  安装之前,可能要安装tcl,根据你的makecheck的显示结果而定吧。也可以不装。
使用zebra
cd examples/gils
zerbraidx update records
zerbrasrv @:2100
yaz-client localhost:2100
Z> find surficial
Z> show 1
Z> find sutrs
Z> show 1
Z> find grs-1
Z> show 1
Z> find xml
Z> show 1
Z> elements B
Z> show 1

----------------------------
cd examples/zthes
make records/dino.xml

vi zebra.cfg
profilePath: .:../../tab
recordType: grs.sgml

zebraidx update records
zebrasrv

yaz-client @:9999
Z> find
Z> format xml
Z> show 1

vi Zthes.abs
attset zthes.att
attset bibl.att
xpath enable
systag sysno none

xelm /Zthes/termID termID:w
xelm /Zthes/termName termName:w,title:w
xelm /Zthes/termQualifier termQualifier:w
xelm /Zthes/termType termType:w
xelm /Zthes/termLanguage termLanguage:w
xelm /Zthes/termNote termNote:w
xelm /Zthes/termCreateDate termCreateDate:w
xelm /Zthes/termModifiedDate termModifiedDate:w
xelm /Zthes/termModifiedBy termModifiedBy:w

Z> format xml
Z> f @attr 1=4 Eoraptor
Z> s

Posted by Hilton at July 16, 2004 05:34 PM | TrackBack
Comments

In your free time, check out the sites about online poker online poker http://www.valeofglamorganconservatives.org/ ...

Posted by: online poker at November 29, 2004 02:10 PM
Post a comment









Remember personal info?