experimental interface to fulltext search

This commit is contained in:
Chris Anderson 2008-06-12 09:09:56 -07:00
parent 170e61f0f1
commit 9a39d0b1cb

View file

@ -25,6 +25,12 @@ class CouchRest
CouchRest.get url
end
# experimental
def search params = nil
url = CouchRest.paramify_url "#{@root}/_search", params
CouchRest.get url
end
def get id
slug = CGI.escape(id)
CouchRest.get "#{@root}/#{slug}"