tinkerpop/blueprints — Issue #187: Overload Index put() method to match the "friendlier" addVertex() and addEdge()
Author: espeed
Created: 2011-11-30 18:04:49+00:00
State: open

This has been moved here from Gremlin: https://github.com/tinkerpop/gremlin/issues/256

By overloading the Index put() method to accept a property map, like you did for addVertex() and addEdge() (https://groups.google.com/d/topic/gremlin-users/SIF4APwCvhg/discussion), you would make it possible to do variable substitution on a Gremlin script template library.

See also https://github.com/tinkerpop/gremlin/issues/255

Here's the code to do this for TinkerIndex (https://gist.github.com/1387969) -- not sure of what class to modify to make this work for all Index types.