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

2011-09-08 Thread Chris Gioran
Hi Assem The logical log file is where all changes to be performed to the store are written out before they are actually applied - also referred to as the Write Ahead Log. The file that hosts this is bound to a specific size above which a rotation happens: a new file is created to host the WAL, al

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

2011-09-08 Thread Peter Neubauer
Thanks Yuanlong, we will look at it as soon as we got some time! 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           

Re: [Neo4j] possible to query spatial indexes from gremlin?

2011-09-08 Thread Peter Neubauer
Boris, you are seeing the expected results through REST but not through the Webadmin with this query? That sounds like a bug then. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

Re: [Neo4j] Aggregate queries

2011-09-08 Thread Marko Rodriguez
Hi, Thanks James. Here is how I would do it -- groupCount is not needed. g.idx(index_name)[[key:value]].both.loop(1){it.loops < depth}.count() Note: Be wary of this query. Make sure the branch factor of your graph is sufficiently small or the depth to which you are exploring is sufficie

Re: [Neo4j] Querying a full text index

2011-09-08 Thread Romiko Derbynew
Remember that the default match is 0.5 e.g director~0.5 hence why it matches up to two letter differences e.g ditectof, directors etc Sent from my iPhone On 08/09/2011, at 5:10 AM, "Yaniv Ben Yosef" wrote: > Hi Axel, > > I've read the syntax, which is why I was surprised. There are wildcard >

Re: [Neo4j] Issues with IndexedRelationship

2011-09-08 Thread Niels Hoogeveen
Excellent... I did a code review and think this is a huge improvement over what we had. Peter, can you pull these changes, I no longer have the privs to do so. Niels > Date: Thu, 8 Sep 2011 17:24:44 +1200 > From: bryc...@gmail.com > To: user@lists.neo4j.org > Subject: Re: [Neo4j] Issues with Ind

Re: [Neo4j] Issues with IndexedRelationship

2011-09-08 Thread Niels Hoogeveen
I like this idea > Date: Thu, 8 Sep 2011 15:41:52 +1200 > From: bryc...@gmail.com > To: user@lists.neo4j.org > Subject: Re: [Neo4j] Issues with IndexedRelationship > > Another thought if there is going to be a larger refactor of the code is > whether the indexing mechanism should be broken out a

[Neo4j] Blocking access to the Neo4j web admin interface

2011-09-08 Thread carze
I'm making use of the Neo4j REST API to power a website and was wondering if there was any way to block access to the web admin interface. Currently the DB is in read-only mode but the web admin panel is accessibly by anyone who can stumble upon the URL. -- View this message in context: http://ne

Re: [Neo4j] Blocking access to the Neo4j web admin interface

2011-09-08 Thread Peter Neubauer
Hi there, you can block access to it by blocking the access to the URL (localhost:.../webadmin) and even /db/manage. That requires probably to set up apache and mod_proxy in front of the Neo4j server, but I think that is a good idea in production scenarios anyway. http://docs.neo4j.org/chunked/sna

Re: [Neo4j] possible to query spatial indexes from gremlin?

2011-09-08 Thread Boris Kizelshteyn
correct, but through the spatial plugin via rest not gremlin. > > > > On Thu, Sep 8, 2011 at 4:23 AM, Peter Neubauer < > peter.neuba...@neotechnology.com> wrote: > >> Boris, >> you are seeing the expected results through REST but not through the >> Webadmin with this query? That sounds like a bug

Re: [Neo4j] possible to query spatial indexes from gremlin?

2011-09-08 Thread Peter Neubauer
Boris, could you please raise an issue in Neo4j Spatial so I can start investigating this? https://github.com/neo4j/spatial/issues?sort=created&direction=desc&state=open so we can track it down. Please provide REST calls that work and that don't, will add it to the integration testing :) Cheers,

Re: [Neo4j] Blocking access to the Neo4j web admin interface

2011-09-08 Thread Linan Wang
since neo4j just uses jetty, i think the simple solution would be add option in neo4j shell script: -Djetty.host=127.0.0.1 to make it only listen to local request. then use ssh tunnel to expose service to designated machines. On Thu, Sep 8, 2011 at 2:18 PM, Peter Neubauer wrote: > Hi there, > you

Re: [Neo4j] Issues with IndexedRelationship

2011-09-08 Thread Peter Neubauer
Niels, Bryce, great! Gave you access to the repo, please merge :) /peter On Thu, Sep 8, 2011 at 2:32 PM, Niels Hoogeveen wrote: > > Excellent... I did a code review and think this is a huge improvement over > what we had. > Peter, can you pull these changes, I no longer have the privs to do so.

Re: [Neo4j] Aggregate queries

2011-09-08 Thread espeed
Marko Rodriguez-2 wrote: > >> >>> "For all nodes in a particular index, how many other nodes are they >>> connected to at depth X?" > > Here is how I would do it -- groupCount is not needed. > > g.idx(index_name)[[key:value]].both.loop(1){it.loops < depth}.count() > > Thanks Marko. A

Re: [Neo4j] Blocking access to the Neo4j web admin interface

2011-09-08 Thread Peter Neubauer
That sounds good. Could you try it and report back? Would love to add it to the manual and as a setting. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterne

Re: [Neo4j] Aggregate queries

2011-09-08 Thread Marko Rodriguez
Hey, > Won't this count dupes more than once? > > Xavier's requirements of "how many other nodes are they connected" sounds > like you should only count uniques, and that's why I am checking the size of > groupCount map instead of using count(). Instead of a map you could use a > Set with aggreg

Re: [Neo4j] possible to query spatial indexes from gremlin?

2011-09-08 Thread Boris Kizelshteyn
posted On Thu, Sep 8, 2011 at 9:29 AM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Boris, > could you please raise an issue in Neo4j Spatial so I can start > investigating this? > > https://github.com/neo4j/spatial/issues?sort=created&direction=desc&state=open > so we can track it

Re: [Neo4j] Aggregate queries

2011-09-08 Thread Xavier Shay
Thanks everyone, this gives me plenty to work with. Will report back. On Thu, Sep 8, 2011 at 7:03 AM, Marko Rodriguez wrote: > Hey, > > > Won't this count dupes more than once? > > > > Xavier's requirements of "how many other nodes are they connected" sounds > > like you should only count uniques

Re: [Neo4j] Blocking access to the Neo4j web admin interface

2011-09-08 Thread Linan Wang
tested the idea, it doesn't work. so i made simple changes to the server code and diff is attached. to change the binding ip of the webserver: add following line to conf/neo4j-server.properties: org.neo4j.server.webserver.address=127.0.0.1 On Thu, Sep 8, 2011 at 2:55 PM, Peter Neubauer wrote: > T

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

2011-09-08 Thread Aseem Kishore
That is awesomely helpful info. Thank you very much! Aseem On Thu, Sep 8, 2011 at 12:55 AM, Chris Gioran < chris.gio...@neotechnology.com> wrote: > Hi Assem > > The logical log file is where all changes to be performed to the store > are written out before they are actually applied - also referr

[Neo4j] Recommended way to index and lookup paired properties

2011-09-08 Thread Aseem Kishore
Hey guys, quick question on indexing. We track Amazon products in our db, and the way Amazon identifies its products is with an Amazon Standard Identification Number (ASIN). The only catch is that ASINs are only unique within a particular locale, and Amazon has a few different locales (e.g. us, uk

[Neo4j] getProperty() on deleted Node in TransactionEventHandler.beforeCommit()

2011-09-08 Thread tcolar
We have an implementation of TransactionEventHandler in the method beforeCommit() I would like to use getProperty("nodeType") .. so I can take proper action. Now in the case of a deletion event, it won't let me call it and throws an exception. I'm surprised by this exception has this is beforeCom

[Neo4j] maximum number of nodes

2011-09-08 Thread Akhil
Do you believe that neo4j will be able to store between 20 - 30 billion nodes ? I am talking about genomics data. Akhil ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] maximum number of nodes

2011-09-08 Thread Peter Neubauer
Akhil, i theory, this should be possible, see http://docs.neo4j.org/chunked/snapshot/capabilities-capacity.html . However, with that number of nodes etc, you need probably very specialized hardware to run any form of performant traversal over this data. If you want to do this, I suggest you put up

Re: [Neo4j] regarding supernode

2011-09-08 Thread Linan Wang
On Wed, Sep 7, 2011 at 5:21 PM, Linan Wang wrote: > hi, > I don't quite understand RelationshipIndex and RelationshipExpander. > say I have a supernode city (beijing), it has 10 m users links to > through relationship LIVES_IN. so how should I index? should be > something like: > RelationshipIndex

Re: [Neo4j] Blocking access to the Neo4j web admin interface

2011-09-08 Thread Michael Hunger
Linan, your diff didn't make it could you just issue an pull request for that. And Peter should get you sign a CLA btw. Cheers Michael Am 08.09.2011 um 18:33 schrieb Linan Wang: > tested the idea, it doesn't work. so i made simple changes to the > server code and diff is attached. > to change

Re: [Neo4j] Blocking access to the Neo4j web admin interface

2011-09-08 Thread Linan Wang
done. https://github.com/neo4j/community/pull/16 On Thu, Sep 8, 2011 at 11:21 PM, Michael Hunger wrote: > Linan, > > your diff didn't make it could you just issue an pull request for that. > > And Peter should get you sign a CLA btw. > > Cheers > > Michael > > Am 08.09.2011 um 18:33 schrieb Linan

[Neo4j] Neo4j Write Test Compile Error

2011-09-08 Thread espeed
Hi Guys - I'm trying to compile and run the "write test" (https://svn.neo4j.org/laboratory/users/johan/write-test) from http://wiki.neo4j.org/content/Linux_Performance_Guide, and I'm getting this error: https://gist.github.com/1205327 Is there a newer version of this? Thanks. - James -- Vi

Re: [Neo4j] Neo4j Write Test Compile Error

2011-09-08 Thread Bryce
Hi James, I initially gave this a go and it worked, but found I had cached version of the parent pom in my local maven repo. Removing this I got the same issue you had. You can get this working by replacing the parent pom reference in the pom.xml file with: org.neo4j.build parent-cent

Re: [Neo4j] Neo4j Write Test Compile Error

2011-09-08 Thread espeed
Bryce Ewing wrote: > > You can get this working by replacing the parent pom reference in the > pom.xml file with: > > org.neo4j.build > parent-central > 25 > > Instead of the current: > > org.neo4j > parent-pom > 6 > > > It still wont work quite as is though.

[Neo4j] Java PaaS with Neo4j (slightly off topic)

2011-09-08 Thread Christopher Schmidt
Hi all, I am using (the embedded version of) Neo4j together with a webapplication (WAR file for Tomcat). Does anyone know a PaaS provider (like CloudBees) that allow a local file storage? (This would be a simple solution beside implementing the Neo4j Server REST interface and f.e. using a Neo4j H

Re: [Neo4j] getProperty() on deleted Node in TransactionEventHandler.beforeCommit()

2011-09-08 Thread tcolar
To reply to myself: I found out that i was able to get the properties of the to be deleted node in data.removedNodeProperties() with the value being in previouslyCommitedValue() -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/getProperty-on-deleted-Nod

[Neo4j] neo4j-scala improvements

2011-09-08 Thread Christopher Schmidt
Neo4j Scala (https://github.com/FaKod/neo4j-scala) has got some improvements - Scala (non nested) Case Class de- serialization to or from a Neo4j Node (see example) - index convenience methods (see example) - create and get Relation Objects, like val relation = start --> "foo" --> end <; It's stil