Skip to content

Instantly share code, notes, and snippets.

@public
Created May 14, 2012 16:05
Show Gist options
  • Save public/2694760 to your computer and use it in GitHub Desktop.
Save public/2694760 to your computer and use it in GitHub Desktop.
import restpose
r = restpose.Server('http://localhost:7777')
d = {"artists|Artist": {"info": {"type": "text", "group": "n"}, "score": {"slot": 0, "type": "double"}, "name": {"type": "text", "group": "n", "wdfinc": 5}}}
core = r.collection("core")
core.checkpoint().wait()
conf = core.config
conf["types"].update(d)
conf["types"]
core.config = conf
core.checkpoint().wait()
core.config["types"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment