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::Query::Boosts#boost_for_categories

API.

Get the boost for an array of category names.

Example:
  [:name, :height, :color] returns +3, but
  [:name, :height, :street] returns -1.

Note: Use Array#clustered_uniq to make
      [:a, :a, :b, :a] => [:a, :b, :a]

Source | Google | Stack overflow

Edit

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

cd picky

open server/lib/picky/query/boosts.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Picky--Query--Boosts-boost_for_categories-for-pr


# Commit to git

git add server/lib/picky/query/boosts.rbgit commit -m "better docs for Picky::Query::Boosts#boost_for_categories"


# 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--Query--Boosts-boost_for_categories-for-pr

hub pull-request


# Celebrate!