Re: [Neo4j] Add node to index
Andrew, do you have the URL to the documentation you are looking at? Is it the same version as the database version you are using? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 4, 2011 at 9:07 AM, andrew ton andrewt...@yahoo.com wrote: Hi, In the document (15.7.6) the example of adding a node to index by a POST method to http://localhost:7474/db/data/index/node/favorites/key/the%20value. The service accept JSON. However the example shows the request posts the body as a string http://localhost:7474/db/data/node/0; but not a json object. I tried to Post a string of a node to add it to the index and got an error (as I expected). Can somebody shed some light? If we post a json object then what is the key? Thanks, ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Add node to index
Hi Andrew, In the latest snapshots the API has changed, see: http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html So either ensure you're using 1.5M01 if you want the old behaviour, or a snapshot if you want the new behaviour. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Add node to index
Hi Jim, Thank you! I'm using 1.5.M01 version. Just out of curiosity, how did you add a node into the index in the 1.5.M01 version? I'm downloading the SNAPSHOT and will try again. Cheers, Andrew From: Jim Webber j...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Tuesday, October 4, 2011 12:55 AM Subject: Re: [Neo4j] Add node to index Hi Andrew, In the latest snapshots the API has changed, see: http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html So either ensure you're using 1.5M01 if you want the old behaviour, or a snapshot if you want the new behaviour. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Add node to index
Hi Peter, I'm using Neo4J 1.5.M01 and I use the neo4j manual in this package. So I guess the manual is for that version. Cheers, Andrew From: Peter Neubauer peter.neuba...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Tuesday, October 4, 2011 12:54 AM Subject: Re: [Neo4j] Add node to index Andrew, do you have the URL to the documentation you are looking at? Is it the same version as the database version you are using? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 4, 2011 at 9:07 AM, andrew ton andrewt...@yahoo.com wrote: Hi, In the document (15.7.6) the example of adding a node to index by a POST method to http://localhost:7474/db/data/index/node/favorites/key/the%20value. The service accept JSON. However the example shows the request posts the body as a string http://localhost:7474/db/data/node/0; but not a json object. I tried to Post a string of a node to add it to the index and got an error (as I expected). Can somebody shed some light? If we post a json object then what is the key? Thanks, ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Add node to index
Andrew, just downloaded and looked at it. The manual is generated from integration tests, so this code has been running against a server. In the SNAPSHOT version, you have full JSON syntax, see http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html#rest-api-add-node-to-index I am not sure, but isn't sdfsdfsdf Valid JSON? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 4, 2011 at 4:23 PM, andrew ton andrewt...@yahoo.com wrote: Hi Peter, I'm using Neo4J 1.5.M01 and I use the neo4j manual in this package. So I guess the manual is for that version. Cheers, Andrew From: Peter Neubauer peter.neuba...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Tuesday, October 4, 2011 12:54 AM Subject: Re: [Neo4j] Add node to index Andrew, do you have the URL to the documentation you are looking at? Is it the same version as the database version you are using? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 4, 2011 at 9:07 AM, andrew ton andrewt...@yahoo.com wrote: Hi, In the document (15.7.6) the example of adding a node to index by a POST method to http://localhost:7474/db/data/index/node/favorites/key/the%20value. The service accept JSON. However the example shows the request posts the body as a string http://localhost:7474/db/data/node/0; but not a json object. I tried to Post a string of a node to add it to the index and got an error (as I expected). Can somebody shed some light? If we post a json object then what is the key? Thanks, ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Add node to index
Hi Peter, I downloaded the SNAPSHOT version and looked into the manual. It is different from the one in the 1.5.M01 version and it looks very nice as well as useful. I modified my code to Post the Json object to the index and the node was successfully added. Thanks! Regards, From: Peter Neubauer peter.neuba...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Tuesday, October 4, 2011 7:53 AM Subject: Re: [Neo4j] Add node to index Andrew, just downloaded and looked at it. The manual is generated from integration tests, so this code has been running against a server. In the SNAPSHOT version, you have full JSON syntax, see http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html#rest-api-add-node-to-index I am not sure, but isn't sdfsdfsdf Valid JSON? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 4, 2011 at 4:23 PM, andrew ton andrewt...@yahoo.com wrote: Hi Peter, I'm using Neo4J 1.5.M01 and I use the neo4j manual in this package. So I guess the manual is for that version. Cheers, Andrew From: Peter Neubauer peter.neuba...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Tuesday, October 4, 2011 12:54 AM Subject: Re: [Neo4j] Add node to index Andrew, do you have the URL to the documentation you are looking at? Is it the same version as the database version you are using? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 4, 2011 at 9:07 AM, andrew ton andrewt...@yahoo.com wrote: Hi, In the document (15.7.6) the example of adding a node to index by a POST method to http://localhost:7474/db/data/index/node/favorites/key/the%20value. The service accept JSON. However the example shows the request posts the body as a string http://localhost:7474/db/data/node/0; but not a json object. I tried to Post a string of a node to add it to the index and got an error (as I expected). Can somebody shed some light? If we post a json object then what is the key? Thanks, ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Add node to index
Cool, Glad it works out! /peter Sent from my phone. On Oct 4, 2011 10:07 PM, andrew ton andrewt...@yahoo.com wrote: Hi Peter, I downloaded the SNAPSHOT version and looked into the manual. It is different from the one in the 1.5.M01 version and it looks very nice as well as useful. I modified my code to Post the Json object to the index and the node was successfully added. Thanks! Regards, From: Peter Neubauer peter.neuba...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Tuesday, October 4, 2011 7:53 AM Subject: Re: [Neo4j] Add node to index Andrew, just downloaded and looked at it. The manual is generated from integration tests, so this code has been running against a server. In the SNAPSHOT version, you have full JSON syntax, see http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html#rest-api-add-node-to-index I am not sure, but isn't sdfsdfsdf Valid JSON? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/- Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 4, 2011 at 4:23 PM, andrew ton andrewt...@yahoo.com wrote: Hi Peter, I'm using Neo4J 1.5.M01 and I use the neo4j manual in this package. So I guess the manual is for that version. Cheers, Andrew From: Peter Neubauer peter.neuba...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Tuesday, October 4, 2011 12:54 AM Subject: Re: [Neo4j] Add node to index Andrew, do you have the URL to the documentation you are looking at? Is it the same version as the database version you are using? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/- Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Oct 4, 2011 at 9:07 AM, andrew ton andrewt...@yahoo.com wrote: Hi, In the document (15.7.6) the example of adding a node to index by a POST method to http://localhost:7474/db/data/index/node/favorites/key/the%20value. The service accept JSON. However the example shows the request posts the body as a string http://localhost:7474/db/data/node/0; but not a json object. I tried to Post a string of a node to add it to the index and got an error (as I expected). Can somebody shed some light? If we post a json object then what is the key? Thanks, ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user