Re: [Neo4j] How to cascade delete all connected nodes from neo4j shell?

2011-07-30 Thread Mattias Persson
I don't quite understand what you're looking for. If you'd like to delete a node with all its relationships you can do 'rmnode -f node-id' or 'rmnode -f' so that the current node is used. Are you looking for a way to just delete all relationships from a node, but not the node itself or a way to

Re: [Neo4j] Pagination in Embedded

2011-07-30 Thread Mattias Persson
And there's a tiny test in https://github.com/neo4j/community/blob/master/kernel/src/test/java/org/neo4j/helpers/collection/TestCommonIterators.java#L146 2011/7/30 Jim Webber j...@neotechnology.com There's JavaDoc here:

Re: [Neo4j] Composable traversals

2011-07-30 Thread Mattias Persson
Yes, FYI that's the exact thing we've been discussing :) 2011/7/29 Niels Hoogeveen pd_aficion...@hotmail.com Great, I would much rather see this become part of the core API than have this as part of the Enhanced API. To make things work correctly, one important change to core is needed: The

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
When running the mvn install, both tests are ran after another. Since I didn't use mvn (xD) I ran the tests manually one by one, but what you say makes sense, it's likely the tests fail when ran one after the other, I'll see what happens with an @Suite since there are only 2 junit tests, with

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
those got concatenated for some reason, I'll repost them here so I can see them Relatationship: To associated Node: RelId - NodeId From associated Node: NodeId - RelId RelationshipType: To associated Node: RelationhipType.name - NodeId From associated Node: NodeId - RelationshipType.name;

Re: [Neo4j] How to cascade delete all connected nodes from neo4j shell?

2011-07-30 Thread dhsieh
I am looking for ways to delete all connected nodes that can be reached thought any or sepcific relationships, i.e., deleting all nodes/relationships other than the reference node (node 0). A smilar capability in RDBMS is called cascade delete through foreign keys from the parent table. -- View

Re: [Neo4j] auto indexes in REST in 1.4?

2011-07-30 Thread dhsieh
Does one need to specify the following list of node_keys_indexable relationship_keys_indexable in neo4j.property to enable auto indexing for those node/relationship properties? Also, will they work if those properties were created prior to adding the list in neo4j.property file?

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
I use the download option on Github expand the zip in a directory and run mvn install in that directory without any problems. Niels Date: Sat, 30 Jul 2011 13:39:15 +0200 From: cyuczie...@gmail.com To: user@lists.neo4j.org Subject: Re: [Neo4j] bdb-index When running the mvn install, both

Re: [Neo4j] How to download neo4j 1.3 [for using jo4Neo]

2011-07-30 Thread Peter Neubauer
Hi there, looking at this you should be able to provide your own Configurator that can do anything the server configuration can do, also setting the port, /** * Create an instance with custom documentation. * {@link EmbeddedServerConfigurator} is written to fit well here, see its'

[Neo4j] Embedded neo4j server (Was: How to download neo4j 1.3 [for using jo4Neo])

2011-07-30 Thread Peter Neubauer
Hi there, also, you can just extend the https://github.com/neo4j/community/blob/master/server/src/main/java/org/neo4j/server/configuration/EmbeddedServerConfigurator.java that is used by default and has just the minimum properties to get the server going :) Cheers, /peter neubauer GTalk:     

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
(ignore these, skip to the bold part: ie. search BOLD) Thanks Niels, I just tried what you said, with maven 3.0.3 it seemed to do some downloading work for a while then eventually got this: [ERROR] Failed to execute goal on project neo4j-berkeleydb-je-index: Could not resolve dependencies for

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
from my experience this kind of behaviour would happen mostly due to using some static fields which are expected to be in initialized state for each test, or test class I also needed to mention that I get this error: Jul 30, 2011 8:18:54 PM

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
Ok, up until now I've had almost no idea what is happening, what those tests are doing and stuff, so I was blindly trying to fix things, it sort of worked until now; looks like I have to begin to understand what is going on; so I will delve deeper into this and understand what is going on exactly

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
looks like before delving too deep, I found that attempting to deleting the dbPath ie. deleteFileOrDirectory( dbPath ); fails, right after graphDB.shutdown(); - I'm excluding the possibility that that method is deferring the shutdown to another thread and thus is non-blocking (due to my timing of

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
in TestBerkeley.java So far I've found that, bdb environment(and relevant databases) is(are) only closed when index.delete() is called and that can only be called when the current transaction is finished (else it will complain that some bdb databases are not opened on txn commit) Applying all

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
found out that I don't need to call index.delete() all the time, instead BerkeleyDbDataSource.close() aka XaDataSource.close() should do what index.delete() does, namely closing all databases (related to this datasource) and their bdb environment; so I do just that. Therefore I answer some parts

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
The problem is indeed related to not properly closing the bdb database, and that is triggers another problem. In BerkeleyDbCommand data is being stored into the transaction log and been read from the transaction log later on. Something goes wrong making the indexName being retrieved from the

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
I didn't reach that part, I'm sure you're right though, meanwhile there was a need to add xaContainer.close(); to org.neo4j.index.bdbje.BerkeleyDbDataSource.close() such that that logical.log.1 file isn't kept open anymore Now there's a messages.log still open, working on that xD On Sat, Jul 30,

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
I did a quick check of what you said org.neo4j.index.bdbje.BerkeleyDbCommand.writeToFile(LogBuffer) char[] indexName = indexId.indexName.toCharArray(); buffer.putInt( indexName.length ); buffer.put( indexName ); I'm probably missing something but on my side it looks like it writes length then

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
On Sat, Jul 30, 2011 at 11:23 PM, John cyuczieekc cyuczie...@gmail.comwrote: I did a quick check of what you said org.neo4j.index.bdbje.BerkeleyDbCommand.writeToFile(LogBuffer) char[] indexName = indexId.indexName.toCharArray(); buffer.putInt( indexName.length ); buffer.put( indexName );

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
testFindCreatedIndex() is the method that fails (due to unable to delete the file, else it works fine) but it only fails when testInsertionSpeed() is allowed to execute (ie. not @Ignore) messages.log contents: Sat Jul 30 23:31:23 CEST 2011: Thread[main,5,main] Starting

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
org.neo4j.kernel.impl.batchinsert.BatchInserterImpl keeps StringLogger msgLog still open even after shutdown() public void shutdown() { graphDbService.clearCaches(); neoStore.close(); msgLog.logMessage( Thread.currentThread() + Clean shutdown on BatchInserter( + this

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
related to this I've created: https://trac.neo4j.org/ticket/358 also committed on my fork, now AllTests.java works https://github.com/13th-floor/bdb-index for some reason I cannot mvn install: [INFO] [enforcer:enforce {execution: enforce-maven}] [INFO] [license:check {execution: check-licenses}]

[Neo4j] Node#getRelationshipTypes

2011-07-30 Thread Niels Hoogeveen
While working on Enhanced API, I realize two crucial method are missing on the Node interface of the standard API: RelationshipType[] getRelationshipTypes(); RelationshipType[] getRelationshipTypes(Direction); For Enhanced API, I'd like to be able to plug in different Relationship

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
Yes, you are right. I had looked at the code too superficially. Still, something goes wrong reading the indexName, when I print that name it looks like garbage (upon recovery), while it should produce a readable index name. I didn't check if the value written to the record is actually a

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
It looks as if you have modified the file header of the source files. Maven checks the license (the file header) and returns an error message when the license required is different from the license provided. When looking at the diff of one of your edits I noticed there are extra spaces in the

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
hey np, it's all about depth - I should know, I'm always at the superficial level I'll take a closer look at that indexName, did you yet check to see if the tests work, they should work now (except this part that you say it's still broken with the recovery) John reading your newest msg as I type

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
Could you check if the neo4j kernel jar file maven adds to class path is correct and complete. You can find it in your user directory in the .m2 subdirectory. Date: Sun, 31 Jul 2011 00:40:51 +0200 From: cyuczie...@gmail.com To: user@lists.neo4j.org Subject: Re: [Neo4j] bdb-index I

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
I'm not sure how complete it is (ie. there's no org\neo4j\index folder inside it), but its sha1 matches, but also worth mentioning that I noticed it got updated a few minutes before I tried to mvn install, so it could be that it worked before because it was a different .jar (ie. prev version)

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
btw, those diffs look ugly, I wanted to mention that in eclipse in team-History you can ignore whitespace and see the differences in a better way, rather than one big red chunk of removed data then one big green chunk of added data, just because the indentation was also changed I did disable auto

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
I see in your edit of is the following import: import org.neo4j.index.lucene.LuceneIndexProvider; This is an interface defined in the legacy-index component, which is not in the POM ( and shouldn't be). The import is nowhere used in the file, except as links in header of the class where it

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
Forgot the filename in the first sentence: BerkeleyDbBatchInserterIndexProvider.java From: pd_aficion...@hotmail.com To: user@lists.neo4j.org Date: Sun, 31 Jul 2011 01:47:20 +0200 Subject: Re: [Neo4j] bdb-index I see in your edit of is the following import: import

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
how right you are I've had organize imports on save, and due to this javadoc comment: /** * The {@link BatchInserter} version of {@link LuceneIndexProvider}. Indexes * created and populated using {@link BatchInserterIndex}s from this provider * are compatible with {@link Index}s from {@link