Hi there,
I'm trying to use the REST batch method to add data to Neo. However, when I
try to add anything to the index I've created, I get a '400 Bad Request'
error. I tried individual index calls but they return a '405 Method not
allowed' error. I'm a little lost as to why this is happening, as I've been
able to use the Python neo4jrestclient library to carry out these
operations.
Here's a snippet of the data I'm trying to insert via the batch method:
[{
"body": {
"crs": "XPZ",
"tps": "PENYWAUN BUS",
"nalco": "398202",
"tiploc": "ABDAPEN"
},
"to": "/node",
"id": 0,
"method": "POST"
},
{
"body": {
"value": "ABDAPEN",
"uri": "{0}",
"key": "code"
},
"to": "/index/node/tiploc",
"id": 1,
"method": "POST"
},
{
"body": {
"value": "XPZ",
"uri": "{0}",
"key": "crs"
},
"to": "/index/node/tiploc",
"id": 2,
"method": "POST"
},
{
"body": {
"value": "XPZPENYWAUN BUS",
"uri": "{0}",
"key": "sname"
},
"to": "/index/node/tiploc",
"id": 3,
"method": "POST"
}]
Hopefully one of you guys can shed some light on this for me.
Thanks
Neil
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/Adding-index-items-via-REST-tp3379489p3379489.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user