Rast is a full-text search system.
Rast::DB::RDONLYRast::DB::RDWRRast::DB.create(db_name, options)Rast::DB.open(db_name, flags, options)Rast::DB.open(db_name, flags, options) { |db| ... }Open the specified database.
If the optional code block is given, it will be passed database as an argument, and the database will automatically be closed when the block terminates.
How to open.
Rast::DB::RDWR open for reading and writing Rast::DB::RDONLY open for reading
Rast::DB.optimize(db_name[, options = nil])byte_orderencodingpropertiesdb_sync_threshold_charsregister(text, properties)create_documentsyncclosesearch(query, options)delete(doc_id)update(doc_id, text, properties)get_text(doc_id)Rast::LocalDB.create(db_name, options)Rast::LocalDB.open(db_name, flags, options)Rast::LocalDB.open(db_name, flags, options) { |db| ... }Open the specified database.
If the optional code block is given, it will be passed database as an argument, and the database will automatically be closed when the block terminates.
How to open.
Rast::DB::RDWR open for reading and writing Rast::DB::RDONLY open for reading
Rast::Merger.open(merge_dbs)Rast::Merger.open(merge_dbs) { |db| ... }Merge some opened databases.
If the optional code block is given, it will be passed database as an argument, and the database will automatically be closed when the block terminates.
Rast::XMLRPCClient.open(url, flags, options)Open the specified remote Rast database.
If the optional code block is given, it will be passed database as an argument, and the database will automatically be closed when the block terminates.
How to open.
Rast::DB::RDWR open for reading and writing Rast::DB::RDONLY open for reading
add_text(text)set_property(name, value)commitabortdoc_idRast::FilterChain.new(doc[, text_filters = nil])invoke(brigade, mime_type[, filename = nil])Rast::Brigade.new([bucket, ...])each { |bucket| ... }insert_tail(bucket)Rast::TransientBucket.new(str)eos?file?pipe?transient?readRast::FileBucket.new(file)eos?file?pipe?transient?readRast::PipeBucket.new(pipe)eos?file?pipe?transient?readRast::EOSBucket.neweos?file?pipe?transient?readraised if error relates Rast occured.raised if error relates APR(Apache Portable Runtime) occured.raised if error relates BDB(Berkeley DB) occured.raised if error relates Ruby occured.