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::Allocation#calculate_score
Asks the backend for the total score and adds the boosts to it. Note: Combinations can be empty on eg. query "alan history" and category :title is ignored (ie. removed).
Edit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/query/allocation.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Query--Allocation-calculate_score-for-pr
# Commit to gitgit add server/lib/picky/query/allocation.rbgit commit -m "better docs for Picky::Query::Allocation#calculate_score"
# 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--Allocation-calculate_score-for-pr
hub pull-request
# Celebrate!