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
API. Calculates a score for the combinations. Implement #weight_for(category_names) if you don't need the actual combinations, just the category names. Note: Cache this if more complicated weighings become necessary. Note: Maybe make combinations comparable to Symbols? TODO Push into categories? Store boosts in categories?
Edit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/query/boosts.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Query--Boosts-boost_for-for-pr
# Commit to gitgit add server/lib/picky/query/boosts.rbgit commit -m "better docs for Picky::Query::Boosts#boost_for"
# Open pull requestgem 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-for-pr
hub pull-request
# Celebrate!