tinkerpop/rexster — Issue #178: Why include the index class on puts?
Author: espeed
Created: 2011-11-09 07:08:05+00:00
State: open

Why does the index put method require the index class when the class already is already known via the index name?

Create a new manual index named index:
http://base/graphs/graph/indices/index?class=vertex&type=manual

Put vertex with id 1 into index at k1/v1
http://base/graphs/graph/indices/index?key=k1&value=v1&class=vertex&id=1

It would be cleaner to just pass in the key, value, and id.

Also, since this is a "put", would it make sense to have this be an HTTP PUT?