[Neo4j] INSERTing properties

2015-05-13 Thread Tom Zeppenfeldt
We have a usecase in which styling of a node depends on the user and the (properties of a) relationship it has with other nodes. While trying to figure out how to do such a thing, we realized that it would be nice to have a possibility to insert properties in nodes or rels . Not SETting them

[Neo4j] Collection

2015-05-13 Thread sandra haddad
hello , I would like to model the following, s1 and s2 are related by a link and this link have 2 types:type1 and type2 and 2 fields :field1,field2 I tried to run this query CREATE (s1)-[:LINKED_TO{Type:'type1',Field:'Field1'}]-(s2) CREATE (s1)-[:LINKED_TO{Type:'type2',Field:'Field2'}]-(s2)

[Neo4j] Duplicated indexes on a Node

2015-05-13 Thread Mike Holdsworth
Looking at the schema for this node, there are duplicate internal indexes. I tried dropping the apiKey and the code key indexes under separate operations and both times Neo4j said there was an internal error and I then had to restart it to recover. FWIW these indexes are annotated on SDN

Re: [Neo4j] INSERTing properties

2015-05-13 Thread Michael Hunger
you can simulate that by returning maps: RETURN {id:id(n), labels:labels(n), properties:n, metadata: some-value} as n Am 13.05.2015 um 11:14 schrieb Tom Zeppenfeldt tomzeppenfe...@gmail.com: We have a usecase in which styling of a node depends on the user and the (properties of a)

Re: [Neo4j] Neo4j Property Store

2015-05-13 Thread Michael Hunger
I don't think disk space is freed, just the blocks marked as unused. And the restart will start using those blocks (for nodes and rels) For properties etc. the blocks will be reused directly. M Am 13.05.2015 um 16:28 schrieb Vaibhav Aiyar vaibhavai...@gmail.com: Hi, When does NEO4j

Re: [Neo4j] Collection

2015-05-13 Thread Michael Hunger
Not sure I understand. What is the problem with creating multiple links? And I would also encode the type in the relationship-type. Otherwise you could also use two arrays one for types and one for fields Michael Am 13.05.2015 um 15:15 schrieb sandra haddad sandrahaddad...@gmail.com:

Re: [Neo4j] Results not appearing neo4j query

2015-05-13 Thread Michael Hunger
sorry prefix with cypher cypher runtime=interpreted match (n) return n Michael Am 13.05.2015 um 17:21 schrieb Dan puh...@gmail.com: How do I use that? When I put that command into the browser command I get a syntax error: 2015-05-13_11-21-18.png Best Regards, Dan On Tue, May

[Neo4j] Neo4j Property Store

2015-05-13 Thread Vaibhav Aiyar
Hi, When does NEO4j cleanup neostore.propertystore.db.strings store file. We see huge variations in the size of the files in our three environments even though the node count and the data is similar. Below are the sizes of this files in our three environments along with node counts DEV: 19GB

Re: [Neo4j] Results not appearing neo4j query

2015-05-13 Thread Dan
How do I use that? When I put that command into the browser command I get a syntax error: [image: Inline image 1] Best Regards, Dan On Tue, May 12, 2015 at 5:29 PM, Michael Hunger michael.hun...@neotechnology.com wrote: seems to be a bug which should be fixed in the next milestone. it's

Re: [Neo4j] Results not appearing neo4j query

2015-05-13 Thread Dan
I copy and paste your statement but I still get an error: $cypher runtime=interpreted match (n) return n Invalid input 'u': expected 'e/E' (line 1, column 9 (offset: 8)) runtime=interpreted match (n) return n ^ Neo.ClientError.Statement.InvalidSyntax Best Regards, Dan On Wed, May

[Neo4j] Re: Nested collections problem

2015-05-13 Thread Sumit Gupta
Hi Tom, your query works fine without Limit 1 too. it shows all the unique combinations of labelsn, labelm and typer, which is exactly your scope. And that's true that lablesn is not a collection, so what is the problem? or what is not working? Thanks, Sumit On Wednesday, 13 May 2015