$Id: index.html.en,v 1.3 2004/03/05 06:11:10 satoru Exp $
Ruby's search client of a full-text search system Namazu
You can search Namazu's indices via Ruby scripts.
You also need OptionParser to use the rbnamazu from a command line.
Differences from the original client of Namazu.
Copy libraries (rbnamazu.rb, nmzqr.rb, nmzqr.tab.rb, nmzdoc.rb) to a directory which your Ruby loads. Maybe one in ruby -e 'puts $LOAD_PATH'
rbnamazu is copyrighted free software by OHSHIMA Ryunosuke. You can use/redistribute/modify it under the terms of Namazu or Ruby.
OHSHIMA Ryunosuke ryu@jaist.ac.jp
rbnamazu libraries
nmz = Namazu.new(['/namazu/index1/', '/namazu/index2/']) puts nmz.query_and_format('foo and (/bar/ or baz*) not {foo bar}') p nmz.query('foo and (/bar/ or baz*) not "foo bar"', 20, 0)
Object
index_list: Array of Namazu index String. options: Hash of Namazu option.
Search querystring matching documents. Return a result in String. If max and/or whence are given, return from whence to whence + max.
Search querystring matching documents. Return a result in Array. Each item is Hash ({'field name' -> 'field content'}). If max and/or whence are given, return from whence to whence + max.
Array includes this module to hold document information.
Return hit number.
Return hit references in String.
Return i-th document (Hash of fields).