Class: Marsdawn::Search
- Inherits:
-
Object
- Object
- Marsdawn::Search
- Defined in:
- lib/marsdawn/search.rb
Defined Under Namespace
Classes: Rroonga
Class Method Summary collapse
Class Method Details
.create_index(storage, opts) ⇒ Object
5 6 7 |
# File 'lib/marsdawn/search.rb', line 5 def self.create_index storage, opts self.get(storage, opts).create_index end |
.get(storage, opts) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/marsdawn/search.rb', line 9 def self.get storage, opts opts = Marsdawn::Util.hash_symbolize_keys(opts) key = opts[:type] @@base_path ||= File.join(File.dirname(__FILE__), 'search') Marsdawn::Util.adapter(self, class_name, @@base_path).new config, opts end |