[Neo4j] Please help me to modify the query

2014-09-16 Thread Sukaant Chaudhary
Hi, I've two types of nodes *Gender* and *Activity* Gender will be male or female Activity node will contain fields *activity* and *count* where there will be *n no of activity* fields with *n no of counts* For eg: activity = Activity1 count = Count1 activity = Activity1 count = Count2 . . and

[Neo4j] Embedded database starting problem in Neo4j 2.1.1

2014-09-16 Thread Jeyaganeshan Jeyatharsini
I have installed Neo4j 2.1.1 in the directory of C:\Program Files\Neo4j Community in windows 8 32 bit machine. It creates default.graphdb by default C:\Users\Jeyatharshini\Documents\Neo4j directory. I copied it in the same directory and rename as routeFinder.graphdb.. I browsed through Neo4j

[Neo4j] Should I add index to view graph in web interface?

2014-09-16 Thread Jeyaganeshan Jeyatharsini
Should I add index to view graph in web interface? -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit

Re: [Neo4j] Re: Neo4j moving to Jersey 2.x / JAX-RS2.0

2014-09-16 Thread Michael Hunger
Hi Andrew, On Tue, Sep 16, 2014 at 3:07 AM, Andrew Stone astone...@gmail.com wrote: Thanks again for the reply. Unfortunately that single page is a bit too simplistic. Sure it was just an example to show that it's not hard to pull data out of neo to visualize it. We have a relatively

[Neo4j] Re: Please help me to modify the query

2014-09-16 Thread Sukaant Chaudhary
Someone please help me -Sukaant Chaudhary http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479 On Tue, Sep 16, 2014 at 1:31 PM, Sukaant Chaudhary sukaant.chaudh...@gmail.com wrote: Hi, I've two types of nodes *Gender* and *Activity* Gender will be male or female Activity node will

[Neo4j] Neo4j spatial performance for withinDistance

2014-09-16 Thread Phu Huynh
I'm trying to evaluate if neo4j spatial is the right solution for simple geospatial searches. I've imported ~200k locations into a local neo4j database via the rest api and have started to query it using cypher in the neo4j shell I'm finding that queries like the one below are taking up to 5

Re: [Neo4j] org.neo4j.graphdb.NotFoundException

2014-09-16 Thread Nigel Small
Hi Can you provide details of what code you are running when this error is triggered? Cheers Nigel On 16 September 2014 06:11, sunyulovet...@gmail.com wrote: Hi, I am using neo4j 1.9.7,SDN 2.2.0.RELEASE and haproxy 1.4.24 to run the environment. I have 6 server,1 master and 5 slavers

[Neo4j] group_by

2014-09-16 Thread Srinivas Nagamalla
MATCH (p:Movie)-[r:directedBy]-(q:Director) I want to get the movies and directors group by director name and for each group I want at most 2 records Example output: Movie Director m1 per1 m2 per1 m3 per2 m4 per2 -- You received this message because you

Re: [Neo4j] org.neo4j.graphdb.NotFoundException

2014-09-16 Thread Michael Hunger
Most probably these are changes that have not yet propagated to all machines of the cluster. You probably want to look into sticky routing if you access data that you've just written to the current target machine. On Tue, Sep 16, 2014 at 7:11 AM, sunyulovet...@gmail.com wrote: Hi, I am using

Re: [Neo4j] Embedded database starting problem in Neo4j 2.1.1

2014-09-16 Thread Michael Hunger
You can access the database directly either from java or the server, not from both at the same time. Access to the database files is exclusive. There are two more options: 1. Use the Neo4j-JDBC driver: https://github.com/neo4j-contrib/neo4j-jdbc#minimum-viable-snippet 2. Write your Java Code

Re: [Neo4j] Neo4j BatchInserterindex

2014-09-16 Thread Michael Hunger
You have to flush the index before reading from it after writing. For fast operations I'd recommend to use an in-memory structure though like a Map to keep the node-ids you created for your URIs quickly available. On Tue, Sep 16, 2014 at 7:15 AM, Mahek Hanfi mahek.ha...@seecs.edu.pk wrote: I

Re: [Neo4j] Should I add index to view graph in web interface?

2014-09-16 Thread Michael Hunger
It's not related, you might want to see: http://jexp.de/blog/2014/06/styling-neo4j-server-visualisation/ On Tue, Sep 16, 2014 at 11:25 AM, Jeyaganeshan Jeyatharsini 6thar...@gmail.com wrote: Should I add index to view graph in web interface? -- You received this message because you are

Re: [Neo4j] Why can't I drop Constraint?

2014-09-16 Thread Michael Hunger
James, perhaps you can provide your code and the Neo4j version as well as OS version that you used together with the stacktrace? Thanks Michael On Mon, Sep 15, 2014 at 5:42 PM, James Guerrieri james.guerri...@gmail.com wrote: Hi Guys, I'm not sure if this issue was sorted but if it helps I

Re: [Neo4j] group_by

2014-09-16 Thread Michael Hunger
MATCH (p:Movie)-[r:directedBy]-(q:Director) RETURN q.name as director, collect(p.title)[0..2] as movies On Tue, Sep 16, 2014 at 12:22 PM, Srinivas Nagamalla srinivas5...@gmail.com wrote: MATCH (p:Movie)-[r:directedBy]-(q:Director) I want to get the movies and directors group by director name

Re: [Neo4j] Neo4j spatial performance for withinDistance

2014-09-16 Thread Craig Taverner
There are a few things to try: - Improve performance of Neo4j in general through cache/mmap configurations. http://docs.neo4j.org/chunked/milestone/configuration.html - Use the alternative REST API for indexing and search for nodes. This might be slightly faster. Instead of

Re: [Neo4j] Deleting All Nodes with a Lable using Java

2014-09-16 Thread Alireza Rezaei Mahdiraji
I also tried just remove the label per node (i.e., node.removeLabel(label_name)), later query using the same label won't work but I can still see the labels in the web console. Not sure if this means they still exists or not. Best, Alireza On Saturday, August 30, 2014 1:27:00 AM UTC+2,

[Neo4j] How to specify the Label of a property in a Lucene query

2014-09-16 Thread 'Curtis Mosters' via Neo4j
So I have a Label *Title* with the property *title*. With the Noe4j properties I set an index on it with neo4j.properties and *node_keys_indexable=title*. So I have loaded* 1 Mio* nodes of Title. And did the query: *start n=node:node_auto_index('title:*CAPTIVE*')return n;* That give me *2*

Re: [Neo4j] Re: Neo4j moving to Jersey 2.x / JAX-RS2.0

2014-09-16 Thread Andrew Stone
Thanks again for the reply Michael - really appreciate it. Thinking more of it last night, it's in our best interest to have the HTTP server capabilities provided for more than just visualization (stats, node count, cluster status etc..) for long term support and troubleshooting both with our

[Neo4j] Does the Neo4j Shell require the property file as argument?

2014-09-16 Thread 'Curtis Mosters' via Neo4j
I have some batch files that load CSV files via Cypher. But before I start the massive import of about 400 mio lines I want to make sure it runs as fast as possible. So I changed the neo4j.properties files but nothing changed. The import of 1 Mio lines took the same amount of time. So I'm

[Neo4j] Re: Please help me to modify the query

2014-09-16 Thread Sukaant Chaudhary
Please help me -Sukaant Chaudhary http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479 On Tue, Sep 16, 2014 at 3:58 PM, Sukaant Chaudhary sukaant.chaudh...@gmail.com wrote: Someone please help me -Sukaant Chaudhary http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479 On Tue, Sep

Re: [Neo4j] Embedded database starting problem in Neo4j 2.1.1

2014-09-16 Thread Jeyaganeshan Jeyatharsini
It's really helpful answer.. Thank you so much On Tuesday, 16 September 2014 16:24:22 UTC+5:30, Michael Hunger wrote: You can access the database directly either from java or the server, not from both at the same time. Access to the database files is exclusive. There are two more options:

[Neo4j] What should the behavior be for shortest path from node to itself - BUG

2014-09-16 Thread Jatin Puri
There is a bug https://github.com/neo4j/neo4j/issues/2987 in GraphAlgoFactory (trivial but never the less irritating). Basically if you try finding a single shortest path from a node to itself, it gives following behavior: Using `GraphAlgoFactory.astar`, it throws:

Re: [Neo4j] Facing issues in creating HA cluster of embedded server

2014-09-16 Thread Kishore Kumar Garg
Thanks Mark! It is running now because of your constant help. :-) On Saturday, 6 September 2014 14:14:18 UTC+5:30, Mark Findlater wrote: Is this line interesting? 2 joining:Name:neo4j.ha Nodes:{1=cluster://127.0.0.1:5001} Roles:{coordinator=1}, last delivered:2 Has you running node

Re: [Neo4j] Tuning search in long distance path

2014-09-16 Thread Michael Hunger
Hi Sebastian, I'm not sure I understand your model. The relationships between stations are one seat of segments of the same train-trip ? I wonder why you didn't model the train with it's wagons and seats as nodes and then connect the seat nodes with a RESERVED_FROM releationship to the stations

Re: [Neo4j] Tuning search in long distance path

2014-09-16 Thread Michael Hunger
I tried to put it together but have no realistic data to model it in a graph gist. Would be fun to load actual train stations, routes and reseverations with LOAD CSV into a graphgist though. http://gist.neo4j.org/?dropbox-14493611%2Ftrain-stops_reseverations.txt Hope it helps Michael On Tue,

[Neo4j] Uniqueness Constraint Being Violated, Neo4J 2.1.3 Bug?

2014-09-16 Thread Saad Mufti
Hi, We have a Neo4J 2.1.3 database and we have a uniqueness constraint that was created as follows: CREATE CONSTRAINT ON (segment:SEGMENT) ASSERT segment.segmentId IS UNIQUE When we test this from the browser, it works fine in detecting violations, e.g: CREATE (n:SEGMENT {name : duplicate,

Re: [Neo4j] Uniqueness Constraint Being Violated, Neo4J 2.1.3 Bug?

2014-09-16 Thread Michael Hunger
To assure uniqueness across multiple threads and a cluster (with appropriate locks, please use MERGE) MERGE (n:SEGMENT {segmentId : 110484}) ON CREATE SET n.name = name , ; On Tue, Sep 16, 2014 at 11:15 PM, Saad Mufti saad.mu...@gmail.com wrote: Hi, We have a Neo4J 2.1.3 database and we

Re: [Neo4j] Uniqueness Constraint Being Violated, Neo4J 2.1.3 Bug?

2014-09-16 Thread Michael Hunger
Also I recommend that you focus writing to the master and not the slaves for higher performance. Feel free to raise a support ticket with our Neo Technology customer account when the issue persists with MERGE On Tue, Sep 16, 2014 at 11:29 PM, Michael Hunger michael.hun...@neotechnology.com

Re: [Neo4j] Uniqueness Constraint Being Violated, Neo4J 2.1.3 Bug?

2014-09-16 Thread Saad Mufti
We're already writing to the master. What do you mean by with appropriate locks? We're using Cypher over REST hitting the transactional endpoints as documented at: http://docs.neo4j.org/chunked/stable/rest-api-transactional.html I don't see anything documented there to allow obtaining of any

Re: [Neo4j] Uniqueness Constraint Being Violated, Neo4J 2.1.3 Bug?

2014-09-16 Thread Michael Hunger
MERGE is the only cypher operation that guarantees uniqueness and also takes the necessary machine- and cluster-wide locks to assure that. Cheers, Michael On Tue, Sep 16, 2014 at 11:50 PM, Saad Mufti saad.mu...@gmail.com wrote: We're already writing to the master. What do you mean by with

[Neo4j] remove: all properties from a relationship

2014-09-16 Thread Ariel Jakobovits
Is it a valid suggestion for Github that the Remove command support a syntax like REMOVE myNode.*? -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Neo4j] remove: all properties from a relationship

2014-09-16 Thread Michael Hunger
MATCH (n:Label {name:{name}} SET n = {} should remove all properties. What's the use-case? On Tue, Sep 16, 2014 at 11:36 PM, Ariel Jakobovits arielj...@gmail.com wrote: Is it a valid suggestion for Github that the Remove command support a syntax like REMOVE myNode.*? -- You received this

Re: [Neo4j] org.neo4j.graphdb.NotFoundException

2014-09-16 Thread Yu Sun
Thank you for your reply. I need to access data that i just written to the current target machine,but this exception tell me that this is not suit for me. Can you help me what i need to do ? My code is very simple,using SDN to save the relationships,for that: Tcard tcard =

[Neo4j] Connect to Neo4j from Android

2014-09-16 Thread Jeyaganeshan Jeyatharsini
My Neo4j database is in D:\\Neo4j\\routefinder.graphdb directory.. I need to access through android program which runs on emulator of PC. What value needs to be set as SERVER_ROOT_URI? will http://localhost:7474/ work or not? -- You received this message because you are subscribed to the