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::ActiveRecord.configure

Takes an array of indexed attributes/methods
and options.

Note: See class documentation for a description.

Examples:
  Picky::Client::ActiveRecord.configure
  Picky::Client::ActiveRecord.configure('name', 'surname', index: 'some_index_name')

Options:
  * index: The index name to save to.
  * host: The host where the Picky server is.
  * port: The host which the Picky server listens to.
  * path: The path the Picky server uses for index updates (use e.f. extend Picky::Sinatra::IndexActions to open up a HTTP indexing interface).
  * client: The client to use if you want to pass in your own (host, port, path options will be ignored).

Source | Google | Stack overflow

Edit

git clone [email protected]:floere/picky.git

cd picky

open client/lib/picky-client/client/active_record.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Picky--Client--ActiveRecord-configure-for-pr


# Commit to git

git add client/lib/picky-client/client/active_record.rbgit commit -m "better docs for Picky::Client::ActiveRecord.configure"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Picky--Client--ActiveRecord-configure-for-pr

hub pull-request


# Celebrate!