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#initialize
Takes:
* A number of indexes
It is also possible to define the tokenizer and boosts like so.
Example:
search = Search.new(index1, index2, index3) do
searching removes_characters: /[^a-z]/ # etc.
boosts [:author, :title] => +3,
[:title, :isbn] => +1
endEdit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/search.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Search-initialize-for-pr
# Commit to gitgit add server/lib/picky/search.rbgit commit -m "better docs for Picky::Search#initialize"
# 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-initialize-for-pr
hub pull-request
# Celebrate!