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::Categories#possible_categories

This returns the possible categories for this token.
If the user has already preselected a category for this token,
like "artist:moby", if not just return all for the given token,
since all are possible.

Note: Once I thought this was called too often. But it is not (18.01.2011).

Source | Google | Stack overflow

Edit

git clone [email protected]:floere/picky.git

cd picky

open server/lib/picky/categories_indexed.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Picky--Categories-possible_categories-for-pr


# Commit to git

git add server/lib/picky/categories_indexed.rbgit commit -m "better docs for Picky::Categories#possible_categories"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Picky--Categories-possible_categories-for-pr

hub pull-request


# Celebrate!