experimental interface to fulltext search
This commit is contained in:
parent
170e61f0f1
commit
9a39d0b1cb
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue