versae/neo4j-rest-client — Issue #37: Indexes not working
Author: dbro
Created: 2011-10-16 00:05:16+00:00
State: open

Attempting to follow the example from the README file, I ran into the following error. It may have have something to do with the change described here https://github.com/neo4j/community/issues/25 which happened after the 1.5.M01 release. I got the same error from 1.5.M02 and 1.5-SNAPSHOT (downloaded today). The indexes don't show up in the Neo4j web admin console, but they do show up as a result of running the python command "gdb.nodex.indexes" but I have not been able to confirm that the indexes have any items in them.
----
In [12]: i1 = gdb.nodes.indexes.create("index1")

In [13]: gdb.nodes.indexes
Out[13]: {u'index1': }

In [14]: i1["key"]["value"]
Out[14]:

In [15]: i1["key"]["value"] = n1
---------------------------------------------------------------------------
StatusException Traceback (most recent call last)

/home/d/graph/graphtest-rest.py in ()
----> 1
2
3
4
5

/usr/local/lib/python2.6/dist-packages/neo4jrestclient/client.pyc in __setitem__(self, value, item)
1028 raise StatusException(response.status,
1029 "Error requesting index with POST %s " \
-> 1030 ", data %s" % (request_url, url_ref))
1031
1032 def query(self, value):

StatusException: Error [405]: Method Not Allowed. Specified method is invalid for this server..
Error requesting index with POST http://localhost:7474/db/data/index/node/index1/key/value , data http://localhost:7474/db/data/node/4