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

Reply via email to