Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-09-07 Thread Nuo Yan
Hey Adriano and everyone, I finally got a chance to monitor/profile the neo4j process with VisualVM when I run my set of tests. It seems that after running the set of tests once, ~ 50M of PermGen was used. However, subsequent test runs simply multiples that, which worries me a little. After

Re: [Neo4j] Community - count me in!

2011-09-07 Thread Peter Neubauer
James, yes absolutely. IMHO the best forum to initially float new ideas is the mailing lists since they are most open for discussion and seen by a bigger community. After things get a bit more concrete, I would capture the enhancement idea as clearly as possible on GIThub as an issue, so the

Re: [Neo4j] Community - count me in!

2011-09-07 Thread Axel Morgner
Hi Peter! That's great news! I'm absolutely convinced that an open community that is so well supported like Neo4j's will make the difference in many projects. Greetings Axel Am 06.09.2011 um 16:32 schrieb Peter Neubauer: Hi all, Over the last year, the graph community has seen a fantastic

[Neo4j] Querying a full text index

2011-09-07 Thread Yaniv Ben Yosef
Hi, This question may be Lucene related, but since I'm using it via Neo4J I'm asking here first. I'm using Neo4J 1.4 M06. I have a graph representing people, with a few properties about each person (e.g., their name and job title). Now I'd like to create a search form that will allow the user to

Re: [Neo4j] Querying a full text index

2011-09-07 Thread Rick Bullotta
While I don't know that it will change anything, any reason that you're using M06 and not 1.4.1? There have been quite a few important fixes. Also, the analyzer that is used to tokenize both the indexed content and the query have an effect on the query processing. In any case, I would update

[Neo4j] Moving graph-collections to neo4j on GIThub

2011-09-07 Thread Peter Neubauer
Hi all, since I am about to commit the RTree refactoring done by Davide Savazzi, pulling it out into graph-collections, I moved the repo from my GIThub account to https://github.com/neo4j/graph-collections. Niels, Craig, Mattias and everyone else, please repoint your .git/config to url =

Re: [Neo4j] Size on disk, and number of properties

2011-09-07 Thread Johan Svensson
Removing the log files ending with .vversion number at runtime is perfectly safe to do but will turn off the ability to do incremental backups. You can however still perform live full backups. Configuring Neo4j with keep_logical_logs=false the logs will automatically be deleted upon rotation.

Re: [Neo4j] multiple lucene index in a transaction doesn't work?!

2011-09-07 Thread Peter Neubauer
Nice, good find! 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.

Re: [Neo4j] Size on disk, and number of properties

2011-09-07 Thread Aseem Kishore
Thanks Johan! Configuring Neo4j with keep_logical_logs=false the logs will automatically be deleted upon rotation. What does upon rotation mean here? Aseem On Wed, Sep 7, 2011 at 5:56 AM, Johan Svensson jo...@neotechnology.comwrote: Removing the log files ending with .vversion number at

Re: [Neo4j] REST API: errors should always be JSON, not HTML

2011-09-07 Thread Aseem Kishore
Hey Peter, sorry for not being totally clear. It should indeed be an *HTTP* error, e.g. 400 or whatever. The problem is that the *body* is HTML when it should be JSON. That is, you should see a bunch of HTML tags in the body, instead of a simple {error: ..., stacktrace: ...} object. Cheers, Aseem

Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-09-07 Thread Nuo Yan
According to this: http://neo4j.org/forums/#nabble-td3248377, I upgraded to 1.4.1 and the problem goes away. I guess there must be a bug in the 1.4.0 REST API that leaks classloader memory or so, and GC didn't happen as expected in PermGen. Anyways, it looks great after upgrading to 1.4.1.

Re: [Neo4j] REST API: errors should always be JSON, not HTML

2011-09-07 Thread Peter Neubauer
Aseem, do you care to raise an issue at https://github.com/neo4j/community/issues?sort=createddirection=descstate=openfor this? I understand - this sounds valid. Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn

Re: [Neo4j] Querying a full text index

2011-09-07 Thread Yaniv Ben Yosef
Hi Rick, Thanks, I will try upgrading and see if it fixes the issue. I have a feeling that I'm missing something here though.. --- Yaniv On Wed, Sep 7, 2011 at 2:16 PM, Rick Bullotta rick.bullo...@thingworx.comwrote: While I don't know that it will change anything, any reason that you're

Re: [Neo4j] REST API: errors should always be JSON, not HTML

2011-09-07 Thread Aseem Kishore
Sure, Peter. Sorry I haven't done this yet for other issues I've reported! Aseem On Wed, Sep 7, 2011 at 11:42 AM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Aseem, do you care to raise an issue at

Re: [Neo4j] REST API: errors should always be JSON, not HTML

2011-09-07 Thread Aseem Kishore
https://github.com/neo4j/community/issues/13 Cheers, Aseem On Wed, Sep 7, 2011 at 11:57 AM, Aseem Kishore aseem.kish...@gmail.comwrote: Sure, Peter. Sorry I haven't done this yet for other issues I've reported! Aseem On Wed, Sep 7, 2011 at 11:42 AM, Peter Neubauer

Re: [Neo4j] Querying a full text index

2011-09-07 Thread Yaniv Ben Yosef
Hi Axel, I've read the syntax, which is why I was surprised. There are wildcard options in the syntax, e.g.: test* and test? and even te*st. So I would expect that [director*] should return director and directory. [director], if I understand the syntax correctly, should return just director. But

Re: [Neo4j] REST API: errors should always be JSON, not HTML

2011-09-07 Thread Peter Neubauer
Thanks! 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.

[Neo4j] Aggregate queries

2011-09-07 Thread Xavier Shay
Hello, Is there an effective way to run aggregate queries over neo4j database? I'm currently running a stock install of the REST server, and want to answer questions like: For all nodes in a particular index, how many other nodes are they connected to at depth X? Currently I have a script that

Re: [Neo4j] REST API: errors should always be JSON, not HTML

2011-09-07 Thread Peter Neubauer
Pushed and fixed. Nite. 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

Re: [Neo4j] Aggregate queries

2011-09-07 Thread Peter Neubauer
Xavier, I would put the load on the server side by either scripting something with Gremlin, http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html or write a Server Plugin taking your parameters and do the heavy lifting in Java, http://docs.neo4j.org/chunked/snapshot/server-plugins.html Would

Re: [Neo4j] Aggregate queries

2011-09-07 Thread espeed
Xavier Shay wrote: For all nodes in a particular index, how many other nodes are they connected to at depth X? Marko will be able to improve upon this, but try something like this (this is untested)... m = [:] depth = 10 index_name = vertices index_key = name index_nodes =

[Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Bryce
Hi, As I mentioned a while ago I am looking at using IndexedRelationship's within my application. The major thing that was missing for me to be able to do this was IndexedRelationshipExpander being able to provide all the relationships from the leaf end of indexed relationships through the the

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Niels Hoogeveen
Great work Bryce, I do have a question though. What is the rationale for the restriction mentioned under 1). Do you need this for the general case (to make IndexedRelationshipExpander work correctly), or do you need it for your own application to throw that exception? If the latter is the

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Bryce
Hi Niels, Sorry I didn't quite write the bit about (1) clearly enough. The problem is that it presently throws an Exception where it shouldn't. This stems from IndexedRelationship.DirectRelationship: this.endRelationship = endNode.getSingleRelationship( SortedTree.RelTypes.KEY_VALUE,

Re: [Neo4j] how Neo4j work for sorting chinese character?

2011-09-07 Thread iamyuanlong
I added here : https://github.com/neo4j/community/issues/14 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-how-Neo4j-work-for-sorting-chinese-character-tp3309754p3318317.html Sent from the Neo4j Community Discussions mailing list archive at

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Niels Hoogeveen
Two longs is certainly cheaper than a string. Two longs take 128 bit and are stored in the main record of the PropertyContainer, while a String would require a 64 bit pointer in the main record of the PropertyContainer, and an additional read in the String store where the string representation

[Neo4j] Neil Ellis wants to stay in touch on LinkedIn

2011-09-07 Thread Neil Ellis via LinkedIn
LinkedIn Neil Ellis requested to add you as a connection on LinkedIn: -- Craig, I'd like to add you to my professional network on LinkedIn. - Neil Ellis Accept invitation from Neil Ellis

Re: [Neo4j] Neil Ellis wants to stay in touch on LinkedIn

2011-09-07 Thread Neil Ellis (Mangala Solutions Limited)
Apologies, a classic address book import mistake :-) Sorry folk! Neil Ellis Sign up for the beta of Hashbo, because life is for sharing: http://hashbo.com Read more about what we're doing at: http://hashbo.posterous.com On 8 Sep 2011, at 02:04, Neil Ellis via LinkedIn wrote: LinkedIn

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Bryce
Will have to experiment with changing my id's to be stored as longs, it does make perfect sense really that it would be better. Thanks for the hint. In regards to SortedTree returning the KEY_VALUE relationship instead of the end Node, I had thought of that too, and it would definitely help.

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Niels Hoogeveen
I think we don't have to worry about backwards compatibility much yet. There has not been a formal release of the component, so if there are people using the software, they will accept that they are bleeding edgers. Indeed addNode should return the KEY_VALUE relationship and I think we should

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Bryce
Another thought if there is going to be a larger refactor of the code is whether the indexing mechanism should be broken out as a strategy for the IndexedRelationship. At present it is tied to SortedTree, but if an interface was extracted out that had addNode, removeNode, iterator, and

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Bryce
I have made the changes in regards to SortedTree in regards to relationships vs nodes, and have got all the tests passing. The changes are pushed up to my github account (and pull request has been raised). The changes can be seen here: https://github.com/brycenz/graph-collections On Thu, Sep 8,