The create=True parameter is per session at the moment, this is a known issue, and is going to be resolved at some point. It depends on support from the underlying subsystem that is not implemented yet.
On Tue, Mar 16, 2010 at 7:09 AM, Ryan Rosario <uclamath...@gmail.com> wrote: > Hi, > > I am using neo4j.py and I created an index using the command > > index = neo.index("nodes", create=True) > > When I try to access the index from another script using > > index = neo.index("nodes") > > with the same database data directory, I get: > > Traceback (most recent call last): > File "incidenceMatrix.py", line 8, in <module> > index = neo.index("nodes") > File > "/Library/Python/2.6/site-packages/Neo4j.py-0.1_SNAPSHOT-py2.6.egg/neo4j/__init__.py", > line 433, in index > return self.__index.get(name, options, create) > File > "/Library/Python/2.6/site-packages/Neo4j.py-0.1_SNAPSHOT-py2.6.egg/neo4j/_index.py", > line 47, in get > raise KeyError("No index named '%s'." % name) > KeyError: "No index named 'nodes'." > > What am I doing wrong? > > TIA, > Ryan > _______________________________________________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Tobias Ivarsson <tobias.ivars...@neotechnology.com> Hacker, Neo Technology www.neotechnology.com Cellphone: +46 706 534857 _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user