Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

stars! riak search! toys!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 db
Octocat-spinner-32 lib
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.md

AllOfTheStars

I don't even know what this is going to be, yet. Right now, it's just a Riak Search testbed. Probably not useful for anyone.

Setup

Setup the rubies:

gem install bundler
bundle install

And the Riaks:

brew install riak-search # or equivalent
riaksearch start

# setup the search schema
search-cmd set-schema stars db/stars.erl
search-cmd set-schema clusters db/clusters.erl

# setup the automatic riak kv => riak search hooks
search-cmd install stars
search-cmd install clusters

USAGE

All JSON API for now. The actual serialization and fields will likely change.

  • create a cluster
    • POST /clusters
  • create a star
    • POST /clusters/:id/stars
  • get a cluster
    • GET /clusters/:id
  • get a star
    • GET /stars/:id
  • get stars in a cluster
    • GET /clusters/:id/stars
    • ?q=blah - search content
    • ?t=Campfire - filter by type
    • ?custom[foo] - filter by custom field
    • ?start - the starting result of the query (pagination)

Tests

No tests. shrug lol

Something went wrong with that request. Please try again.