Tom,

sorry for the confusion.
my_nodes is the index name (you can several index-names per type (node, 
relationship) the default names are "nodes" and "relationships"

so for your example it would look like:

> curl -Haccept:application/json -HContent-Type:application/json -X POST -d 
> '"http://localhost:7474/db/data/node/123";' 
> http://localhost:7474/db/data/index/node/nodes/name/New%20York

Sorry, I thought someone updated the wiki, we had the discussion before. Will 
do it now.

Michael

Am 10.02.2011 um 13:06 schrieb Tom Smith:

> 
> On 9 Feb 2011, at 21:25, Michael Hunger wrote:
> 
>> and this is supported by the REST API, see:
>> http://components.neo4j.org/neo4j-server/milestone/rest.html#Add_to_index
>> 
>> Hope that helps
> 
> It nearly does. In the above example, adding something to an index via curl 
> is documented as...
> 
> curl -HContent-Type:application/json -X POST -d 
> '"http://localhost:7474/db/data/node/123";' 
> http://localhost:7474/db/data/index/node/my_nodes/foo/bar
> 
> ... it's not clear what "my_nodes" is. Is that the index name? As in 
> graphdb.index("cities")?
> 
> And secondly, does each index entry need a key of "foo" with a value of 
> "bar"? As in   {'name': 'New York'}?
> 
> thanks
> 
> Tom
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 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