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::Search#facets
Returns a list/hash of filtered facets. Params category: The category whose facets to return. Options counts: Whether you want counts (returns a Hash) or not (returns an Array). (Default true) at_least: A minimum count a facet needs to have (inclusive). (Default 1) filter: A query to filter the facets with(no_args). Usage: search.facets :name, filter: 'surname:peter', at_least: 2
Edit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/search_facets.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Search-facets-for-pr
# Commit to gitgit add server/lib/picky/search_facets.rbgit commit -m "better docs for Picky::Search#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--Search-facets-for-pr
hub pull-request
# Celebrate!