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::Allocations#process_unique!
Same as #process! but removes duplicate ids from results. Note that in the result later on an allocation won't be included if it contains no ids (even in case they have been eliminated by the unique constraint in this method). Note: Slower than #process! especially with large offsets.
Edit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/query/allocations.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Query--Allocations-process_unique--for-pr
# Commit to gitgit add server/lib/picky/query/allocations.rbgit commit -m "better docs for Picky::Query::Allocations#process_unique!"
# 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--Allocations-process_unique--for-pr
hub pull-request
# Celebrate!