You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rsinger edited this page Sep 14, 2010
·
13 revisions
CheapSkate
a Solr-like substance for occasions when Solr is not an option
Requirements:
sinatra
ferret
hpricot
uuid
json
faster_csv
Installation:
gem install cheap_skate
Getting Started:
$ cheapskate init my_new_cheapskate_project
Note the ‘project name’ needs to be something that can be easily turned into a Ruby symbol. Use underscores instead of dashes, don’t start with a number, etc.
This (rake task) will create a new directory with subdirectories to store your CheapSkate configuration, Ferret index, logs, etc.
If you have an existing application with predefined schema.xml:
$ cd my_new_cheapskate_project
$ cheapskate convertschema xml=/path/to/schema.xml
This will take your existing schema document and migrate it to CheapSkate’s YAML-based schema (as ./conf/schema.yml).
Modify ./conf/cheapskate.yml to taste.
$ rackup config.ru
Point a web client at http://localhost:9292/, you should see a “Welcome to CheapSkate” message.
Things should seem generally “Solr-ish” at this point: