Re: [Neo] Choosing between a property or a node

2010-02-19 Thread Mattias Persson
I've included some first thoughts on how you could model this. The choice of properties/index vs. relationships is often quite obvious, but is some cases you'll have to try and see which fits best. But neo4j encourages you to create relationships if you're in doubt and it's often better to use more

Re: [Neo] REST API, newbie question

2010-02-19 Thread Mattias Persson
. > > > Thanks in advance! > > > > [1] http://blog.neo4j.org/2010/02/top-10-ways-to-get-to-know-neo4j.html > _______ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mat

[Neo] Testing Neo4j recovery robustness

2010-02-18 Thread Mattias Persson
CPU cycles to spare and would like to participate and make Neo4j better consider running this test and hopefully improve it somehow... or even create more/other tests which could trigger problems regarding the robustness of Neo4j. -- Mattias Persson, [matt...@neotechnology.com]

Re: [Neo] neo rdf

2010-02-17 Thread Mattias Persson
on in javadoc for VerboseQuadStrategy about that and they use the index key "uri" to index and lookup resource nodes. >> Thank you, >> Luda >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.n

Re: [Neo] Error on startup

2010-02-12 Thread Mattias Persson
it is in > the WebApp's context listener. > > > > Any thoughts? > > > > Thanks, > > > > Rick > > > > ___________ > Neo mailing list > User@lists.neo4j.org > https://li

Re: [Neo] Newbie IndexService question: How is equality defined between values in the index

2010-02-12 Thread Mattias Persson
tween comparing using equals > and toString(). > > Best regards, > Thomas > > On Fri, Feb 12, 2010 at 11:43 AM, Mattias Persson > wrote: >> Yep the answer is simple, it does a .toString() on the object and >> stores that string (since Lucene handles only strin

Re: [Neo] deleting indexed nodes

2010-02-12 Thread Mattias Persson
better that the > IndexService uses the common shared interface PropertyContainer instead > of Node? What is the reason for this design decision? There has been a lot of requests for that and it's consider for inclusion in a future version. > > Regards, > Stefan > > Ma

Re: [Neo] Newbie IndexService question: How is equality defined between values in the index

2010-02-12 Thread Mattias Persson
> Any thoughts on this? > > Best Regards, > Thomas > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___

Re: [Neo] deleting indexed nodes

2010-02-10 Thread Mattias Persson
ore using > indexservice.getNodes(), so I assume node.delete() also removes the > index entries. Can someone please confirm this? > > Regards & thx in advance, > Stefan > > > ___ > Neo mailing list > User@lists.neo4j.org >

Re: [Neo] Some newbie questions about indexing

2010-02-10 Thread Mattias Persson
for the node > Roolback the transaction > > Will the index be rolled back as well? Or do I have to manually remove > the index entry? > > Best regards, > Thomas > ___ > Neo mailing list > User@lists.neo4j.org > https://

Re: [Neo] bug in Node.delete() ?

2010-02-10 Thread Mattias Persson
ossible so that potential code bugs aren't hidden, but instead surfaces as early as possible. 2010/2/10 Mattias Persson : > I don't think that's a very good idea to have as a default behaviour > since potentially the entire graph is interconnected (and that it > isn't jus

Re: [Neo] bug in Node.delete() ?

2010-02-09 Thread Mattias Persson
t; the relationships and remove them. > Not a big deal because we wrap many other operations but something > that would nice to have out of the box. > > 2010/2/9 Mattias Persson : >> Yep, that's right... The documentation is a bit unclear/untrue about >> that. Ryan is ri

Re: [Neo] bug in Node.delete() ?

2010-02-09 Thread Mattias Persson
ips. >> >> Did I miss something or should we consider this a bug? >> >> Regards, >> Stefan >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Node with the millions of incoming relationships "to" - is this a proper way ?

2010-02-08 Thread Mattias Persson
find that one relationship each time you request it and that node isn't present in the cache at the moment (since relationships aren't sorted on disk by type). That should probably be your only concern. > > Dmitri > > > Mattias Persson wrote: >> 2010/2/8 Rick Bullotta

Re: [Neo] Node with the millions of incoming relationships "to" - is this a proper way ?

2010-02-08 Thread Mattias Persson
find that one relationship each time you request it and that node isn't present in the cache at the moment (since relationships aren't sorted on disk by type). That should probably be your only concern. > > Dmitri > > > Mattias Persson wrote: >> 2010/2/8 Rick Bullotta

Re: [Neo] Node with the millions of incoming relationships "to" - is this a proper way ?

2010-02-08 Thread Mattias Persson
to define a property in every node, say "nodetype", with > the appropriate value for every node. > > First way seems to be more correct for me, but Im concerning that there > will be a millions of relations to a single node - is this OK for the > database performance and deficiency (mill

Re: [Neo] Database does not recover after unclean shutdown

2010-02-08 Thread Mattias Persson
420) > > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > > > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Porting to RC1 for algos?

2010-02-07 Thread Mattias Persson
ation errors scare you. :) > > Regards, > Todd > Excellent, that's the spirit! > > > On Sat, Feb 6, 2010 at 5:14 PM, Mattias Persson > wrote: >> which version are you using? If you're using maven then that component >> have changed name to (artifactId) neo4j-g

Re: [Neo] Porting to RC1 for algos?

2010-02-06 Thread Mattias Persson
to port to RC1 if we are trying to use graph-algos > or stay on the old stuff? > > Thanks > Todd > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [

Re: [Neo] org.neo4j.impl.transaction.TransactionFailureException: No mapping found for branchId

2010-02-06 Thread Mattias Persson
t >> org.neo4j.api.core.EmbeddedNeoImpl.(EmbeddedNeoImpl.java:68) >> >        at org.neo4j.api.core.EmbeddedNeo.(EmbeddedNeo.java:49) >> > >> > A workaround is to manually remove the transactions logs >> > >> > active_tx_log >> > tm_tx_lo

Re: [Neo] Lucene search in Shell?

2010-02-05 Thread Mattias Persson
r > Twitter      http://twitter.com/peterneubauer > > http://www.neo4j.org                - Relationships count. > http://gremlin.tinkerpop.com    - PageRank in 2 lines of code. > http://www.linkedprocess.org   - Computing at LinkedData scale. > > > > On Sun, Jan 3, 20

Re: [Neo] Lucene full text indexing service: searching multiple node keys

2010-02-05 Thread Mattias Persson
Compass looks quite nice with its simplified lucene API and support for transactions, so it could might as well be a very good fit to have as an IndexService implementation. Your implementation hasn't got transaction support or am I wrong about that? 2010/1/31 Mattias Persson : > Yep

Re: [Neo] graph-matching component

2010-02-05 Thread Mattias Persson
t;> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Can Neo4j read and process a rdf file?

2010-02-03 Thread Mattias Persson
e node-type query and processing. > > -- > > Francis > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com __

Re: [Neo] Checking whether a relationship exists between two nodes...

2010-02-03 Thread Mattias Persson
it takes to commit the transaction in those 57ms? Would it be ok if you could post a piece of your code which handles this? > > Many thanks in advance, > > Best regards, > > Maria Giatsoglou > ___ > Neo mailing list

Re: [Neo] Missing packages: org.neo4j.util.matching.* errors

2010-02-03 Thread Mattias Persson
And also (regarding the UriBasedExecutor class) the "rdf" component is still called "rdf", but the maven artifact id is called "neo4j-rdf". Do you depend on the latest (and greatest) "neo4j-graph-matching" and "neo4j-rdf" components? 2010/2/3

Re: [Neo] Missing packages: org.neo4j.util.matching.* errors

2010-02-03 Thread Mattias Persson
____________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Neo In The Wild - Vizatweet

2010-02-02 Thread Mattias Persson
it out. >> >> http://www.vizatweet.com/ >> >> Matt >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > _

Re: [Neo] Correct maven dependency

2010-02-02 Thread Mattias Persson
> User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Relation properties

2010-02-01 Thread Mattias Persson
y to set my own id'es for Relations? >> Only Nodes has such functionality - am I right? >> >> -- Forwarded message -- >> From: Anton Popov >> Date: 2010/1/29 >> Subject: Re: [Neo] Relation properties >> To: Neo user discussions >>

Re: [Neo] Question before I use neo4j, how to synchronize databases

2010-02-01 Thread Mattias Persson
_ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Lucene full text indexing service: searching multiple node keys

2010-01-31 Thread Mattias Persson
ed interface. >> >> Hope this is useful >> >> Jonny >> >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> >> > __

Re: [Neo] Relation properties

2010-01-29 Thread Mattias Persson
way here on the mailing list if you asked! > > -- Forwarded message -- > From: Anton Popov > Date: 2010/1/29 > Subject: Re: [Neo] Relation properties > To: Neo user discussions > > > Hello Mattias, > > Got it. Thanks. > Is there any RoadMap

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
Now it's available at http://m2.neo4j.org/org/neo4j/neo4j-index/1.0-SNAPSHOT/neo4j-index-1.0-20100129.143758-4.jar 2010/1/29 Mattias Persson : > 2010/1/29 Symeon (Akis) Papadopoulos : >> >>> I just fixed the bug and your benchmarks run fine w/o any modification >>&g

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
of annoying in situations like this :) > > >> You could update to the latest neo4j-kernel as well, but maybe that's >> not necessary though. >> > We'll first try out to update just the neo-index. > If we face more problems we'll proceed with the kern

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
hat's not necessary though. 2010/1/29 Mattias Persson : > 2010/1/29 Symeon (Akis) Papadopoulos : >> Mattias Persson wrote: >>> Another problem I see is that you're having too granular transactions >>> which will slow down the insertion process quite a bit. Try gro

Re: [Neo] Relation properties

2010-01-29 Thread Mattias Persson
g node, String key, Object > value ) applies for Nodes only. > > 2010/1/28 Mattias Persson > >> Not at all, you're not the first one to overlook that inheritance! >> >> 2010/1/28, Anton Popov : >> > Thanks for a quick answer, Mattias. >>

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
2010/1/29 Symeon (Akis) Papadopoulos : > Mattias Persson wrote: >> Another problem I see is that you're having too granular transactions >> which will slow down the insertion process quite a bit. Try grouping a >> couple of thousands operations in one transaction and y

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
(Sorry for spamming you guys) See http://wiki.neo4j.org/content/Transactions for general information about how to manage transactions in Neo4j. 2010/1/29 Mattias Persson : > Another problem I see is that you're having too granular transactions > which will slow down the insertion proc

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
"too many open files" issue. And I'm almost 100% sure that it will be resolved if you increase the span of your transactions. 2010/1/29 Mattias Persson : > I see that you're not using the Neo4j BatchInserter. Your use case > could definately benefit from it. Take a loo

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
ene.LuceneTransaction.doCommit(LuceneTransaction.java:197) >>>>>>>>        at >>>>>>>> org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:316) >>>>>>>>        at >>>>>>>

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-28 Thread Mattias Persson
;at >>>>>>> org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:514) >>>>>>>at >>>>>>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:573) >>>>>>>at >>>>>>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:543) >>>>>>>at >>>>>>> org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:102) >>>>>>>at >>>>>>> org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:316) >>>>>>>... 5 more >>>>>>> Caused by: java.io.IOException: directory >>>>>>> '/[some-local-path]/resource_id' >>>>>>> exists and is a directory, but cannot be listed: list() returned null >>>>>>>at >>>>>>> org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:516) >>>>>>>at >>>>>>> org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:531) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexFileDeleter.refresh(IndexFileDeleter.java:307) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4300) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4192) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4183) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2190) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2153) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2117) >>>>>>>at >>>>>>> org.neo4j.index.lucene.LuceneDataSource.removeWriter(LuceneDataSource.java:409) >>>>>>>... 14 more >>>>>>> >>>>>>> >>>>>>> ___ >>>>>>> Neo mailing list >>>>>>> User@lists.neo4j.org >>>>>>> https://lists.neo4j.org/mailman/listinfo/user >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> ___ >>>>> Neo mailing list >>>>> User@lists.neo4j.org >>>>> https://lists.neo4j.org/mailman/listinfo/user >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> ___ >>> Neo mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >>> >>> >> >> >> >> > > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Relation properties

2010-01-28 Thread Mattias Persson
Not at all, you're not the first one to overlook that inheritance! 2010/1/28, Anton Popov : > Thanks for a quick answer, Mattias. > > Sorry for a stupid questions, just haven't noticed the inheritance of > Relationship interface. > > On 28 January 2010 1

Re: [Neo] Relation properties

2010-01-28 Thread Mattias Persson
Relations? > The matter is I want to try Dijkstra algorithm performance on some weighted > directed graph and don't know where to put weight actually... > > -- > Best regards, > Popov Anton > ___ > Neo mailing list > User@list

Re: [Neo] Neo4j Transaction Handling in Gremlin

2010-01-28 Thread Mattias Persson
Thanks, >> Marko. >> >> http://markorodriguez.com >> http://tinkerpop.com >> >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > > > > --

Re: [Neo] Neo4j RDF component download path missing?

2010-01-28 Thread Mattias Persson
her jar file or archive that i need to download? or is my >> imports wrong? >> >> any suggestion would be much appreciated >> >> -- >> >> Francis >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-27 Thread Mattias Persson
actionImpl.java:102) >>>>>        at >>>>> org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:316) >>>>>        ... 5 more >>>>> Caused by: java.io.IOException: directory '/[some-local-path]/resource_id' >>>>> exists and is a directory, but cannot be listed: list() returned null >>>>>        at >>>>> org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:516) >>>>>        at >>>>> org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:531) >>>>>        at >>>>> org.apache.lucene.index.IndexFileDeleter.refresh(IndexFileDeleter.java:307) >>>>>        at >>>>> org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4300) >>>>>        at >>>>> org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4192) >>>>>        at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4183) >>>>>        at >>>>> org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2190) >>>>>        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2153) >>>>>        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2117) >>>>>        at >>>>> org.neo4j.index.lucene.LuceneDataSource.removeWriter(LuceneDataSource.java:409) >>>>>        ... 14 more >>>>> >>>>> >>>>> ___ >>>>> Neo mailing list >>>>> User@lists.neo4j.org >>>>> https://lists.neo4j.org/mailman/listinfo/user >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> ___ >>> Neo mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >>> >>> >> >> >> >> > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-27 Thread Mattias Persson
2010/1/26 Symeon (Akis) Papadopoulos : > Mattias Persson wrote: >> Ah, do you make sure you call IndexHits#close() on your results from >> getNodes(), alternatively iterating over the whole result (in which >> case it's automatically closed)? >> > Actually I&

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-26 Thread Mattias Persson
xWriter.java:4192) >        at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4183) >        at > org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2190) >        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2153) >        at org.apache.lucene.in

Re: [Neo] Cost limit option in Dijkstra Algorithm

2010-01-26 Thread Mattias Persson
ost of both traversals may exceed the limit while the > individual cost is still under limit. > > I have attached a patch with the added test that fails. > Also it would be great to rename the test sub-package from shortestPath to > shortestpath (same as the source package) because

Re: [Neo] Lucene full text indexing service: searching multiple node keys

2010-01-26 Thread Mattias Persson
he code in front of me currently but I just wanted to mention >> that implementing and using such an approach wasn't too hard at all. >> >> best, >> Jonny >> >> On Mon, Jan 25, 2010 at 12:03 AM, Subhash Chandran wrote: >> >>> Thanks for lett

Re: [Neo] Lucene full text indexing service: searching multiple node keys

2010-01-24 Thread Mattias Persson
ble? > -- > Regards, > Subhash Chandran S > > http://indiwiz.com/ > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Techn

Re: [Neo] Return edges during a traversal

2010-01-23 Thread Mattias Persson
ng some data in edges that I need. > > -- > Nathan Marz > Twitter: @nathanmarz > http://nathanmarz.com > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias

Re: [Neo] Minor inconsistency in shell behavior

2010-01-22 Thread Mattias Persson
ng, but a thing none the less. Agree? Keep up > the good work :) > > -David > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neot

Re: [Neo] Mutliple embedded databases?

2010-01-22 Thread Mattias Persson
man/listinfo/user > > References > >   1. https://lists.neo4j.org/mailman/listinfo/user > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Infinite recursion bug in SimpleIndexHits

2010-01-22 Thread Mattias Persson
o the life span of this bug is quite short. Hopefully it won't cause too much trouble along the way. 2010/1/22 Mattias Persson : > A simple fix is to use the IndexHits instance as an Iterable (as > opposed to an Iterator)... by doing that the problem goes away (it's > also ok to us

Re: [Neo] Infinite recursion bug in SimpleIndexHits

2010-01-22 Thread Mattias Persson
; Nathan Marz > Twitter: @nathanmarz > http://nathanmarz.com > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotec

Re: [Neo] LuceneIndexService

2010-01-21 Thread Mattias Persson
ory because it could take a little bit to complete > > > On Thu, Jan 21, 2010 at 4:24 PM, Mattias Persson > wrote: >> Unfortunately you can't do it in the LuceneIndexService... but I'd >> guess that it could be exposed in some form, or that it could be >>

Re: [Neo] LuceneIndexService

2010-01-21 Thread Mattias Persson
the index with the > Embedded neo mode? > In the batch mode we have the optimize() method in the BatchInserter ... > I have to do manually? > > best regards > Lorenzo > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.

Re: [Neo] Graph linking in Neo4j- Is it possible?

2010-01-21 Thread Mattias Persson
> Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Infinite recursion bug in SimpleIndexHits.java (LuceneIndexService.getNodes)

2010-01-19 Thread Mattias Persson
/neo4j/util/index/SimpleIndexHits.java > > So no wonder there is a problem. > > Anybody else have this issue? > > Is anybody able to use the indexing component successfully? > > Thanks for your help. > > > > > Cheers, > Lach > ________

Re: [Neo] Search Multiple Property Keys in LuceneIndexService

2010-01-18 Thread Mattias Persson
This can however be done using the "natural index" of the graph, in that you query for one property and for each hit you traverse the graph to see if the rest matches. That's more of a "graphy" thinking in my book. 2010/1/18 Mattias Persson : > Currently that&#

Re: [Neo] Transaction Event Listeners

2010-01-18 Thread Mattias Persson
;>>> Inserts, Updates, Cache etc... >>>> ___ >>>> Neo mailing list >>>> User@lists.neo4j.org >>>> https://lists.neo4j.org/mailman/listinfo/user >>>> >>> >>> >>> &

Re: [Neo] Search Multiple Property Keys in LuceneIndexService

2010-01-18 Thread Mattias Persson
have title=Directory and name=Larry > Wachowski? The equivalent lucene query would be: > +title:Director +name:"Larry Wachowski" > > I know you can do this in the ruby version of neo, but I am using the java > version. Would I have to extend the LuceneIndexService and add t

Re: [Neo] Request a sample code to illustrate finding all nodes where key < value

2010-01-18 Thread Mattias Persson
You found your answers in another thread, right? 2010/1/12 Mattias Persson : > That's strange, let me have a look at it... I'll try such an example > and see if I can figure out why it isn't working! > > 2010/1/12 Zerony Zhao : >> Thanks for your reply. >>

Re: [Neo] Drop an index.

2010-01-18 Thread Mattias Persson
FYI, I've implemented such functionality in IndexService (and LuceneIndexService), i.e added methods: removeIndex( Node node, String key ) and removeIndex( String key ) They will be merged into trunk soon after 1.0 release. 2010/1/4 Mattias Persson : > 2010/1/4 Taylor Cowan : >>

Re: [Neo] Memory management in neo4j?

2010-01-17 Thread Mattias Persson
> System.out.println(node1.getId()); > Iterable knows = node1.getRelationships(); > for (Relationship know : knows) > { > Node friend_node = know.getOtherNode(node1); > System.out.println("\t" + friend_node.getProperty("name")); > } > neo.shutdown(); > } > > private static enum MyRel

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Mattias Persson
> reading, it will have to be split up into multiple transaction blocks. >> >> Ryan >> >> On Jan 12, 2010, at 5:28 AM, Mattias Persson wrote: >> >>> Your code doesn't need to be littered with transaction management. You >>> can have a very bi

Re: [Neo] integer and substring searching using LuceneFulltextQueryIndexService

2010-01-12 Thread Mattias Persson
t; On Jan 12, 2010 8:06 PM, "Mattias Persson" > wrote: > > Lucene supports *something*, but not from the query syntax (how odd is > that?)... what you can do is to subclass > LuceneFulltextQueryIndexService and @Override the formQuery method > with something like: >

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Mattias Persson
gt; -- > Laurent "ker2x" Laborde > Sysadmin & DBA at http://www.over-blog.com/ > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, w

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Mattias Persson
de the transanctional scope. This is the >> same >> issue you find with hibernate with LazyInitExceptions when you call >> to read >> outside of a session. >> >> On Jan 12, 2010 2:28 AM, "Mattias Persson" >> wrote: >> >> Your code doesn't ne

Re: [Neo] integer and substring searching using LuceneFulltextQueryIndexService

2010-01-12 Thread Mattias Persson
___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Mattias Persson
nd use Spring injection, but what if you don't? > > You do it the Oracle(tm) way : buy more ram :) > > -- > Laurent "ker2x" Laborde > Sysadmin & DBA at http://www.over-blog.com/ > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Abstract unit test cases

2010-01-12 Thread Mattias Persson
Although they use the "neo" component, they should be updated to use the "neo4j-kernel" component... I'll fix soon 2010/1/12 Mattias Persson : > There's some classes I usually use (fits me, since I wrote them :) ). > They are in https://svn.neo4j.org/laboratory

Re: [Neo] Abstract unit test cases

2010-01-12 Thread Mattias Persson
n the graph? > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list

Re: [Neo] Request a sample code to illustrate finding all nodes where key < value

2010-01-12 Thread Mattias Persson
0 TO 1]" ) will returns node with "somekey" value such as 1, 11, 111 > supposing having 1, 11, 111, but I only want returning 1 exactly. I know one > of solution is using padding scheme to solve the problem. Is there any other > ways to solve the problem? > > On Sun, Jan

Re: [Neo] Request a sample code to illustrate finding all nodes where key < value

2010-01-10 Thread Mattias Persson
where key < value. > > Appreciate your help. > > Zerony > ___________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] RFC: Potentially breaking changes in the upcoming 1.0 release

2010-01-06 Thread Mattias Persson
hone: +46 706 534857 > _______ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Persisting store metadata

2010-01-05 Thread Mattias Persson
the information would be > guaranteed. The upside is, as you say, that you get all these nice things such as consistency for free... as well as that it automatically tags along in online backup and all such things, which is quite nice. > > /Tobias > > On Tue, Jan 5, 2010 at 9:34 AM, M

Re: [Neo] getProperty and null...

2010-01-05 Thread Mattias Persson
> _______ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Persisting store metadata

2010-01-05 Thread Mattias Persson
); > -- > Tobias Ivarsson > Hacker, Neo Technology > www.neotechnology.com > Cellphone: +46 706 534857 > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Performance evaluation in neo4j

2010-01-04 Thread Mattias Persson
dware (raid) you may get a higher insert/update >> speed. Batch inserter mode does not support concurrent updates. > > yes > >> >> Regards, >> -Johan > > Thanks. Any other tips on concurrency are very appreciated. > > best regard, > strozzino &

Re: [Neo] Drop an index.

2010-01-04 Thread Mattias Persson
neo4j than "drop" I suppose. >> >> Thank you, >> Marko. >> >> http://markorodriguez.com >> http://gremlin.tinkerpop.com >> _______ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4

Re: [Neo] Retrieving nodes ordered by property

2010-01-04 Thread Mattias Persson
quot;. > This is necessary when the data is iterated over using pagination and the > order determines what the next start node is next. > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinf

Re: [Neo] Neo in a cluster?

2010-01-03 Thread Mattias Persson
rt multiple concurrent users run in production with more than one >> >> J2EE >> >> > server even if it is for balancing http load. It is still unclear to >> me >> >> how >> >> > to get data from a neo store if the front end is distributed among >> >> servers. >> >> >> >> Right now we are fully focused on the Neo4j 1.0 release that will be >> >> out in January. After that focus will shift to HA 1.0 and we aim to >> >> get a first version out in Q1/Q2. Since we are an embedded database >> >> the architecture when running multiple machines is a bit different >> >> then from the typical J2EE setup. Instead of having your separate DB >> >> cluster machines put the full stack on each machine (http layer+BL+DB >> >> layer) and run a load balancer in front. >> >> >> >> Hope this answers some of your questions. >> >> >> >> Regards, >> >> -Johan >> >> ___ >> >> Neo mailing list >> >> User@lists.neo4j.org >> >> https://lists.neo4j.org/mailman/listinfo/user >> >> >> > >> > >> > >> > -- >> > Raul Raja >> > ___ >> > Neo mailing list >> > User@lists.neo4j.org >> > https://lists.neo4j.org/mailman/listinfo/user >> > >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > > > > -- > Raul Raja > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Lucene search in Shell?

2010-01-03 Thread Mattias Persson
- PageRank in 2 lines of code. > http://www.linkedprocess.org - Computing at LinkedData scale. > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Tec

Re: [Neo] Persistance of nodeID

2009-12-26 Thread Mattias Persson
lled back (not committed). Transactions which are half-way through the commit process will be fully committed if possible, else fully rolled back. > > Ho and ... Merry christmas :) Merry Christmas :) > > -- > Laurent "ker2x" Laborde > Sysadmin & DBA at http://www.over-blog.com/ > _

Re: [Neo] Strange behavior of LuceneFulltextIndexService

2009-12-24 Thread Mattias Persson
2009/12/24, Sebastian Stober : > Hi Mattias, > > I just ran the test and all looks fine now! :-) > Thanks for the great support and happy holidays to everybody! And to you! Best, Mattias > > Cheers, > Sebastian > >> Date: Wed, 23 Dec 2009 13:15:53 +0100 >> F

Re: [Neo] Strange behavior of LuceneFulltextIndexService

2009-12-23 Thread Mattias Persson
Just checking... did the latest index-util fix your problems? 2009/12/21 Mattias Persson : > I think I fixed it. It'll be available from our maven repo soon! > > 2009/12/21 Mattias Persson : >> Ok great, I'll look into this error and see if I can locate that bug. >>

Re: [Neo] LuceneIndexBatchInserter doubt

2009-12-21 Thread Mattias Persson
Hi again, any luck with this yet? 2009/12/11 Núria Trench : > Thank you very much Mattias. I will test it as soon as possible and I'll > will tell you something. > > Núria. > > 2009/12/11 Mattias Persson > >> I've tried this a couple of times now and first

Re: [Neo] neo-rdf-sail + BSBM

2009-12-21 Thread Mattias Persson
eneIndexService as per the example. The NeoIndexService is marked not >>> ready for general usage. >>> >>> Any tips for optimizing performance?  I don't need transactionality, for >>> example, because it's a one-t

Re: [Neo] Strange behavior of LuceneFulltextIndexService

2009-12-21 Thread Mattias Persson
I think I fixed it. It'll be available from our maven repo soon! 2009/12/21 Mattias Persson : > Ok great, I'll look into this error and see if I can locate that bug. > > 2009/12/21 Sebastian Stober : >> Hello Mattias, >> >> thank you for your quick reply. The

Re: [Neo] neo-rdf-sail + BSBM

2009-12-21 Thread Mattias Persson
L engine (and parts of Sesame 1?). Would this be  better? > >     Andy > > [1] http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/results/V5/ > ___________ > Neo mailing list > User@lists.neo4j.org > htt

Re: [Neo] Strange behavior of LuceneFulltextIndexService

2009-12-21 Thread Mattias Persson
quot;name", "Larry Wachowski" ); > index.index( larry, "name", larry.getProperty( "name" ) ); > > // start the test... > index.getNodes( "name", "wachowski" ) > now returns only larry instead of both nodes. > > Any ideas? I

Re: [Neo] Strange behavior of LuceneFulltextIndexService

2009-12-18 Thread Mattias Persson
t;andy AND larry" --> * o "andy OR larry" --> (1), (2) * o "larry Wachowski" --> (1), (2) // lucene's default operator is OR * * The default AND/OR behaviour can be changed by overriding * {...@link #getDefaultQueryOperator(String, Objec

Re: [Neo] traverser speed on first execution

2009-12-17 Thread Mattias Persson
Man I liked that quote! 2009/12/17 Rick Bullotta : > "any sufficiently advanced technology is indistinguishable from magic..." - > Arthur C. Clarke > > > -Original Message- > From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On > B

Re: [Neo] Strange behavior of LuceneFulltextIndexService

2009-12-17 Thread Mattias Persson
List.contains(andy)); > // LFTIS: []   LFTQIS: [andy, larry] > > > My conclusions from this: > 1. LFTIS works only for single-word queries > How can I then query for "Andy Wachowski"? > > 2. LFTQIS is case sensitive: getNodes() retri

Re: [Neo] traverser speed on first execution

2009-12-17 Thread Mattias Persson
ableEvaluator.ALL_BUT_ > START_NODE, >    RelTypes.CATEGORIZED_AS, >    Direction.INCOMING ); > > Many thanks for any comments and ideas! > > Darren > ___________ > Neo mailing list > User@lists.neo4j.org > https:

Re: [Neo] LuceneIndexService - update value for key

2009-12-16 Thread Mattias Persson
e IndexService as a whole in a near future. But currently that can't be done via the IndexService interface. > > Any ideas would be welcome. > > Cheers, > Sebastian > ___ > Neo mailing list > User@lists.neo4j.org > https://l

Re: [Neo] Counting nodes

2009-12-16 Thread Mattias Persson
s() both for > - size() > and > - for actually finding the nodes associated with just the first n > LuceneIndex matches? >  (as opposed to returning all the nodes in very large objects) > > Kind regar

<    5   6   7   8   9   10   11   12   >