Module: Xapian::Rack

Defined in:
lib/xapian/rack/search.rb,
lib/xapian/rack/version.rb

Defined Under Namespace

Classes: RelativeLoader, Search

Constant Summary collapse

VERSION =
"1.2.20.1"

Class Method Summary collapse

Class Method Details

.find(env, query, options = {}) ⇒ Object


17
18
19
20
# File 'lib/xapian/rack/search.rb', line 17

def self.find(env, query, options = {})
	search = env['xapian.search']
	return search.find(query, options)
end

.get(env) ⇒ Object


22
23
24
# File 'lib/xapian/rack/search.rb', line 22

def self.get(env)
	return env['xapian.search']
end