class Marsdawn::Search

Public Class Methods

create_index(storage, opts) click to toggle source
# File lib/marsdawn/search.rb, line 5
def self.create_index storage, opts
  self.get(storage, opts).create_index
end
get(storage, opts) click to toggle source
# 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