Skip to content

Instantly share code, notes, and snippets.

@zdzolton
Created May 7, 2009 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdzolton/108252 to your computer and use it in GitHub Desktop.
Save zdzolton/108252 to your computer and use it in GitHub Desktop.
CouchDB-Lucene Searching with CouchRest
CouchRest::Database.class_eval do
def search query, options={}
CouchRest.get "#{@uri}/_fti?#{options.merge(:q => query).to_query}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment