Re: [Neo4j] how many relationships?

2011-07-22 Thread cyuczi eekc
pull --rebase Michael mobile mail please excuse brevity and typos Am 22.07.2011 um 04:32 schrieb cyuczi eekc cyuczie...@gmail.com: Hey, btw, the issue was fixed: https://trac.neo4j.org/ticket/356#comment:1 However, github didn't yet sync the git-readonly (ie. git:// github.com/neo4j

[Neo4j] nested transactions feature ?

2011-07-21 Thread cyuczi eekc
Hello. Are nested transaction supported? From what I'm testing here, it looks like unless I specify .failure() on the nested transaction, before it reaches .finish() the transaction is considered to be successful (even if I didn't call .success() on it). Though if I do call .failure() then the

Re: [Neo4j] how many relationships?

2011-07-21 Thread cyuczi eekc
PM, Michael Hunger michael.hun...@neotechnology.com wrote: We're already on it. Looking through the causes for that issue and will keep you and everyone else informed. Michael Am 21.07.2011 um 06:52 schrieb cyuczi eekc: about this, should I create an issue

[Neo4j] No index provider 'lucene' found

2011-07-20 Thread cyuczi eekc
Hi! I've been trying to fix this error, and I've kind of succeeded. My context is, that I've pulled neo4j sources from github and using them in eclipse (without maven and such), and I have the neo4j-community sources as a project, and I am including this project in any of my projects that require

[Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
Is there a way to get the number of relationships without having to iterate through (and count++) them? ie. rels=firstNode.getRelationships(); rels.size(); //doesn't actually exist ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread cyuczi eekc
to build a working superbundle with the default community jars and report back! /peter Sent from my phone. On Jul 20, 2011 7:02 PM, cyuczi eekc cyuczie...@gmail.com wrote: Hi! I've been trying to fix this error, and I've kind of succeeded. My context is, that I've pulled neo4j sources from

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread cyuczi eekc
/- Ă–resund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Wed, Jul 20, 2011 at 7:43 PM, cyuczi eekc cyuczie...@gmail.com wrote: but but I don't know what osgi and project bundle stuff really is :) I don't think I would need that for what I

[Neo4j] retrieve all relationships of a certain type (java)

2011-07-20 Thread cyuczi eekc
How would I go about retrieving all nodes for a certain relationship Type (ie. assuming I don't know any of them nodes) ? (in java code, the other variants rest/cypher I will probably not need to use) ie. rel.getAllNodes(Direction.INCOMING) or rel.getAllNodes(Direction.OUTGOING) or Direction.BOTH

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
, at 11:13, cyuczi eekc wrote: Is there a way to get the number of relationships without having to iterate through (and count++) them? ie. rels=firstNode.getRelationships(); rels.size(); //doesn't actually exist ___ Neo4j mailing list User

[Neo4j] Transactions: what happens when tx.finish() is reached before tx.success() or tx.failure()

2011-07-20 Thread cyuczi eekc
Does it auto fail? Considering how I see in the examples, it does auto-fail... if it doesn't then maybe the doc for tx.finish() should specify what happens, or even throw ? if there isn't a specified default. Ah, I just read the javadoc for Transaction (interface): If an exception is raised in

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
you're interested in. You would then ask this handler for the Rel-Count of a node, which would either compute it (and add/register it to its cache) or just return it from the cache. Michael Am 20.07.2011 um 21:50 schrieb cyuczi eekc: I guess I was hoping it(size/count) was cached

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
I should probably mention that I am using neo4j community (embedded) latest sources up to date from github On Thu, Jul 21, 2011 at 4:59 AM, cyuczi eekc cyuczie...@gmail.com wrote: Trying to count the relationships the normal way I find that oddly, I cannot see more than 100+x relationships

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
); } } file.delete(); } } } On Thu, Jul 21, 2011 at 5:01 AM, cyuczi eekc cyuczie...@gmail.com wrote: I should probably mention that I am using neo4j community (embedded) latest sources up to date from github On Thu, Jul 21, 2011 at 4:59 AM

[Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
When trying to use the same database (or path) from two different java programs, the second one cannot open it. Is this normal ? Can't two or more java programs work on the same (embedded)database ? I used BerkeleyDB (java edition) before, and this was possible, hence why I was expecting this with

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
I took a quick glance, though it seems they are duplicating(replicating?) the database, but I was hoping I could use only one database (instead of having multiple copies of it, though this would be good in the future of course). With this in mind, what should I look for? maybe neo4j server ? that

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
Thanks Michael, that is good to know... I would've tried that right now, for tests, but unfortunately I get that silly error No index provider 'lucene' found, but only when using EmbeddedReadOnlyGraphDatabase, not EmbeddedGraphDatabase. Perhaps it would be worth mentioning that in order to not

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
(and/or the database, since it's in the same path) is already in use by the first program. On Thu, Jul 21, 2011 at 6:03 AM, Michael Hunger michael.hun...@neotechnology.com wrote: Probably you have to add that for the other project too ? Am 21.07.2011 um 05:57 schrieb cyuczi eekc: Thanks Michael

Re: [Neo4j] No index provider 'lucene' found

2011-07-20 Thread cyuczi eekc
: Hehe, On Wed, Jul 20, 2011 at 8:22 PM, cyuczi eekc cyuczie...@gmail.com wrote: PS: you mispelled programmatic =)) (I'm actually laughing with you, not at you xD) As I am a Gmail fanboy, I blame Google for not introducing a Do not send if misspelled button. The Undo send I use in around

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
um 06:12 schrieb cyuczi eekc: It is not necessary however your reply made me retest, and it works as it were, but it only shows that error, if, I run the program with EmbeddedGraphDatabase and put it in an 100 second sleep(so that it keeps the database open), and then I change

Re: [Neo4j] embedded database means it cannot be simultaneously used by multiple processes?

2011-07-20 Thread cyuczi eekc
to access data, via URI and weird messy stuff :) I'll then begin reading, many thanks Jim! On Thu, Jul 21, 2011 at 6:45 AM, cyuczi eekc cyuczie...@gmail.com wrote: Yeah sorry about that :) Bottom line is, EmbeddedReadOnlyGraphDb works. It only displays the `lucene index not found error` when

Re: [Neo4j] how many relationships?

2011-07-20 Thread cyuczi eekc
about this, should I create an issue? On Thu, Jul 21, 2011 at 5:15 AM, cyuczi eekc cyuczie...@gmail.com wrote: Ok there, I found out something new, if I do the count outside of the transaction (ie. after tx.finish() ) then it works right, ie. in a different example: Node `one` has 100,100

Re: [Neo4j] Neo4j 1.4 / Lucene 3.1 / OSGi - No index provider 'lucene' found

2011-07-19 Thread cyuczi eekc
I got the same error when trying to use only the source code from github in eclipse and running some neo4j example, i eventually ended up using the precompiled jars which fixed the problem(and I had them point to the source code to see the javadoc), but I would really love to use the latest