Re: [Neo4j] embedded API unique node creation using schema index

2014-01-03 Thread Wes Freeman
ExecutionEngines are used to run Cypher. You don't need to use Cypher if you don't want to--just don't run that last line. The Java API will respect the unique constraint as well. Wes On Thu, Jan 2, 2014 at 10:11 AM, Alex Frieden wrote: > Yes, but isn't that returning an executionengine when yo

Re: [Neo4j] embedded API unique node creation using schema index

2014-01-02 Thread Alex Frieden
Yes, but isn't that returning an executionengine when you want to return say a node object? On Thu, Jan 2, 2014 at 9:52 AM, Wes Freeman wrote: > The top example is using 2.0 indexes with constraints: > > http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-unique-nodes.html#tutorials-

Re: [Neo4j] embedded API unique node creation using schema index

2014-01-02 Thread Wes Freeman
The top example is using 2.0 indexes with constraints: http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-unique-nodes.html#tutorials-java-embedded-unique-get-or-create On Thu, Jan 2, 2014 at 9:36 AM, Alex Frieden wrote: > Hi all, > I saw this: > http://docs.neo4j.org/chunked/snapsh

[Neo4j] embedded API unique node creation using schema index

2014-01-02 Thread Alex Frieden
Hi all, I saw this: http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-unique-nodes.html Is there a way to do this using the schema index instead of the legacy index? I have set up schema indexes (so property per label). I want to use that for unique node creation. Any thoughts?