neo4j/community — Issue #169: Inconsistent indices behavior in webadmin Gremlin console
Author: simlun
Created: 2012-01-05 11:42:42+00:00
State: open

I noticed a strange behavior when dealing with creating indices and listing them in the Gremlin console.

When using the Gremlin console, the `g` instance stores the indices in a Map ([src](https://github.com/tinkerpop/blueprints/blob/024993f7d8b0d31f8b23ea8c372806d882d04b7d/blueprints-neo4j-graph/src/main/java/com/tinkerpop/blueprints/pgm/impls/neo4j/Neo4jGraph.java#L57)).

This is a problem when I'm firstly listing the indices:

gremlin> g.indices
==> MANUAL[foo:Vertex]

Then secondly adding another index `bar` with the Index Manager (or from my app over REST), and thirdly listing the indices again:

gremlin> g.indices
==> MANUAL[foo:Vertex]

Notice that that method only lists the previously cashed indices... The only way I can reset it is to `$ ./bin/neo4j restart` which feels a bit overkill, doesn't it?

Thoughts on this, anyone?

_My environment: neo4j-community-1.6.M02_