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::Index#facets
Return facets for a category in the form:
{ text => count }
Options
counts: Whether you want counts or not.
at_least: A minimum count a facet needs to have (inclusive).
TODO Think about having a separate index for counts to reduce the complexity of this.Edit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/index_facets.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Index-facets-for-pr
# Commit to gitgit add server/lib/picky/index_facets.rbgit commit -m "better docs for Picky::Index#facets"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Picky--Index-facets-for-pr
hub pull-request
# Celebrate!