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
byte_orderencodingpropertiesdb_sync_threshold_charsregister(text, properties)syncsearch(query, options)delete(doc_id)update(doc_id, text, properties)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
raised if error relates Rast occured.raised if error relates APR(Apache Portable Runtime) occured.raised if error relates BDB(Berkeley DB) occured.