picky
https://github.com/floere/picky
HTML
Picky is an easy to use and fast Ruby semantic search engine that helps your users find what they are looking for.
Picky::Client#replace
Replaces an item in the index (adds it if not indexed yet). Parameters: * index_name: An index that exists in the Picky server. * data: A hash in the form of { :id => 1234, :attr1 => 'attr1', :attr2 => 'attr2', ... }.
Edit
git clone [email protected]:floere/picky.git
cd picky
open client/lib/picky-client/client_index.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Client-replace-for-pr
# Commit to gitgit add client/lib/picky-client/client_index.rbgit commit -m "better docs for Picky::Client#replace"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Picky--Client-replace-for-pr
hub pull-request
# Celebrate!