Re: [Neo4j] Node Id generation deadlock

2011-11-03 Thread Balazs E. Pataki
ssue could come up in other use cases as well, so it is nice to know there's a "Neo4j synchronization" way to do this properly without causing a deadlock. --- balazs On 11/3/11 9:57 AM, Tuure Laurinolli wrote: > On Nov 2, 2011, at 13:33 , Balazs E. Pataki wrote: > >> Hi, &

Re: [Neo4j] Node Id generation deadlock

2011-11-02 Thread Balazs E. Pataki
Hi, I had a similar issue (also with ID generation), and I would be also interested in a solution, or how synchronizations should be done to avoid deadlocks like this in the transaction. Regards, --- balazs On 11/2/11 8:55 AM, Cres wrote: > (Sorry for re-opening this thread, I hadn't yet subsc

Re: [Neo4j] Why doInternalRecovery is necessary?

2011-10-26 Thread Balazs E. Pataki
k in the most recently active logical log and replay > all those transactions to the store files... and that's what the recovery > process does after a non-clean shutdown. > > Best, > Mattias > > 2011/10/26 Balazs E. Pataki > >>

[Neo4j] Why doInternalRecovery is necessary?

2011-10-26 Thread Balazs E. Pataki
Hi, after crashing my application the next time I start it up I get the usual Oct 26, 2011 3:28:42 PM org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog doInternalRecovery INFO: Non clean shutdown detected on log [/db/nioneo_logical.log.1]. Recovery started ... INFO: Non clean shutdown

Re: [Neo4j] how setup lucene fulltext search filter

2011-07-13 Thread Balazs E. Pataki
Great support as always. :-) Thank you! --- balazs On 7/13/11 3:05 PM, Mattias Persson wrote: > 2011/7/13 Balazs E. Pataki > >> Passing a Filter would be great, because in many cases I can decide >> based on Lucene Documents (indexed fields), which objects I need as >&

Re: [Neo4j] how setup lucene fulltext search filter

2011-07-13 Thread Balazs E. Pataki
Passing a Filter would be great, because in many cases I can decide based on Lucene Documents (indexed fields), which objects I need as Nodes (and selecting/filtering/sorting Documents is much faster than first turning each Document to a Node and then sorting/filtering the nodes) But as Edgar p

Re: [Neo4j] numericRange vs. exact/fulltext index

2011-06-29 Thread Balazs E. Pataki
e them changing in the near future, and even if it's a bit of a > hack to use them (since they are there mostly to be able to remove stuff) > I've used them also in at least one scenario. I think you can give it a go, > but it's not an "official" feature that could

Re: [Neo4j] numericRange vs. exact/fulltext index

2011-06-29 Thread Balazs E. Pataki
oesn't break anything else then I'll commit it. > > Best, > Mattias > > Den tisdagen den 28:e juni 2011 skrev Balazs E. Pataki: >> Hi Mattias, >> >> Thanks for the tip! >> >> I started to look around and I think I found something. When &quo

Re: [Neo4j] numericRange vs. exact/fulltext index

2011-06-28 Thread Balazs E. Pataki
don't know. What I see > in neo4j is that it treats the values the exact same way, the queries to the > index is exactly the same, but it just doesn't return any values. I think > there needs to be some more googling around this to get more answers. > > > 2011/6/28 Bal

[Neo4j] numericRange vs. exact/fulltext index

2011-06-28 Thread Balazs E. Pataki
Hi, I'm playing around with indexing and numeric range queries according to this documentation: http://docs.neo4j.org/chunked/snapshot/indexing-lucene-extras.html According to my tests numeric range queries (QueryContext.numericRange()) only have effect when "exact" type index is used. I

Re: [Neo4j] afterRollback never called

2011-06-28 Thread Balazs E. Pataki
update your counter (which isn't stored in neo4j?) for stuff that's > actually committed. > > 2011/6/27 Balazs E. Pataki > >> Hi, >> >> So, an explicit failure() in a transaction doesn't count as a >> "transaction failed for some reason"

Re: [Neo4j] afterRollback never called

2011-06-27 Thread Balazs E. Pataki
tions. Is there > any specific reason as to why you'd like to know about those transactions? > > 2011/6/24 Balazs E. Pataki > >> Hi, >> >> I'm using 1.4M03 and I have class implementing TransactionEventHandler. >> However it never receives an afterRol

[Neo4j] afterRollback never called

2011-06-24 Thread Balazs E. Pataki
Hi, I'm using 1.4M03 and I have class implementing TransactionEventHandler. However it never receives an afterRollback() although I call failure() and finish() on the transaction. Otherwise the transaction seems to be rolled back, only my TransactionEventHandler is not informed about it. befo

Re: [Neo4j] Slow Traversals on Nodes with too many Relationships

2011-06-15 Thread Balazs E. Pataki
Hi, when we started to evaluate neo4j we made some measurements and for us it seemed that 50.000 is a magical number: this many relationships and properties on one node seemed to be a limit, which once reached makes things slow. But we didn't actually need that much relationship/property in ou

Re: [Neo4j] Announcing Neo4j 1.4 M03 “Kiruna Stol”

2011-05-30 Thread Balazs E. Pataki
011/5/27 Balazs E. Pataki > >> Hello Ian, >> >> and welcome! :-) >> >> Reading the announcment about M03 ... >> >> http://blog.neo4j.org/2011/05/announcing-neo4j-14-m03-kiruna-stol.html >> >> ... I got excited about the "novel way of ca

Re: [Neo4j] Announcing Neo4j 1.4 M03 “Kiruna Stol”

2011-05-27 Thread Balazs E. Pataki
Hello Ian, and welcome! :-) Reading the announcment about M03 ... http://blog.neo4j.org/2011/05/announcing-neo4j-14-m03-kiruna-stol.html ... I got excited about the "novel way of caching relationships based on their direction". Can you explain what it actually means and in what situations can

Re: [Neo4j] InvalidRecordException: Node record NodeRecord still has relationships

2011-05-05 Thread Balazs E. Pataki
tells that you didn't. Maybe > you should step through delete process to be sure. > > > Greetings Chris > > Am 05.05.2011 um 13:47 schrieb "Balazs E. > Pataki": > >> Hi, >> >> I have a complex database and I try to delete some parts of the >

[Neo4j] Relationship iterator doesn't implement remove()

2011-05-05 Thread Balazs E. Pataki
Hi, Anothor bug like feature I just found. :-) Node#getRelationships() return an Iterablle, from which I can get an Iterator. This Iterator (actually IntArrayIterator) however doesn't implement the full Iterator interface as it throws an UnsupportedOperationException() when remove() is called

[Neo4j] InvalidRecordException: Node record NodeRecord still has relationships

2011-05-05 Thread Balazs E. Pataki
Hi, I have a complex database and I try to delete some parts of the graph using traversal. When deleting, I always delete all relationhips of a node, and then delete the node itself. At the end, however I get this exception: Caused by: javax.transaction.HeuristicRollbackException: Failed to c

Re: [Neo4j] Neo4j 1.3 GA Released!

2011-04-13 Thread Balazs E. Pataki
Great job, thank you! Will you also update this page http://neotechnology.com/price-list to make it clear what is included in which release and with what license (Neo4j Community is still marked as AGPLv3 here)? Regards, --- balazs On 4/13/11 6:18 PM, Jim Webber wrote: > Hello fellow grap

Re: [Neo4j] Lucene 3.1 with neo4j. Is it OK?

2011-04-07 Thread Balazs E. Pataki
Ok, thanks. I will try and report if I find out something (good or bad). --- balazs On 4/7/11 11:44 AM, Tobias Ivarsson wrote: > I see no reason for it not to work, Lucene has a good story of compatibility > between releases with the same major version. > > But please note that this isn't somethin

[Neo4j] Lucene 3.1 with neo4j. Is it OK?

2011-04-07 Thread Balazs E. Pataki
Hi, the subject says is all. :-) But anyway, is it possible/safe to use the brand new 3.1 (31 March 2011) release of Lucene with neo4j? Thanks, --- balazs ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] How to copy a complete database?

2011-03-07 Thread Balazs E. Pataki
> >>> This tool will modify your string properties to store them as short >> strings >>> when possible. It will then rebuild the id generator for the >>> DynamicStringStore so that the "holes" created where the strings were >>> previously stored

Re: [Neo4j] How to copy a complete database?

2011-03-07 Thread Balazs E. Pataki
ics tool almost does that, but with a wider range of >>> possible encodings. >>> >>> What would you want from a class like that? Give it a string as input and >>> have it tell you if it is short or not? Or go through an existing store >> and >>> tel

Re: [Neo4j] How to copy a complete database?

2011-03-04 Thread Balazs E. Pataki
gt;> --- >> balazs >> >> On 3/3/11 6:37 PM, Tobias Ivarsson wrote: >>> Yes, the statistics tool almost does that, but with a wider range of >>> possible encodings. >>> >>> What would you want from a class like that? Give it a string a

Re: [Neo4j] How to copy a complete database?

2011-03-04 Thread Balazs E. Pataki
gt; string compression tool" for accomplishing this, but haven't done so yet. >>> >>> Cheers, >>> Tobias >>> >>> On Thu, Mar 3, 2011 at 11:35 AM, Balazs E. Pataki>> wrote: >>> >>>> Hi, >>>> >>>> I

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Balazs E. Pataki
Hi Tobias, Do you happen to have some little class which can at tell us which property values neo4j would consider short and which of your 6 encoding would it use? Maybe the string statistics collecting program you created earlier has this logic - but I'm just guessing. Thanks, --- balazs On

Re: [Neo4j] How to copy a complete database?

2011-03-03 Thread Balazs E. Pataki
ionship = > s.createRelationshipTo(e, r.getType()); > > for (String key : r.getPropertyKeys()) { > newRelationship.setProperty(key, r.getProperty(key)); > } > > I hope this is useful for you. > > Greetings > > Axel > > [1] http://lists.neo4j.org/pi

[Neo4j] How to copy a complete database?

2011-03-03 Thread Balazs E. Pataki
Hi, I have a big database based on Neo4J 1.2. Now, if I would like to use the "short strings" feature of Neo4j 1.3 M03 I should regenerate my full database, that is all strings should be reset so that it may or may not be stored according to the new "short strings" policy. It seems to me that

Re: [Neo4j] Lucene indexing bug, NullPointerException

2011-01-14 Thread Balazs E. Pataki
I tried and it now works all right. Thanks again! --- balazs On 1/14/11 11:00 AM, Balazs E. Pataki wrote: > Great! Thank you very much, I will check this and report how it works. > > Thanks for the quick response! > --- > balazs > > On 1/14/11 9:40 AM, Mattias Persson

Re: [Neo4j] Lucene indexing bug, NullPointerException

2011-01-14 Thread Balazs E. Pataki
tor == null ? new >>>> ConstantScoreIterator( ids, 0 ) : idIterator; >>>> -return new IdToEntityIterator( idIterator, searcher ) >>>> +return new IdToEntityIterator( idIterator ) >>>> { >>>> @Ov

Re: [Neo4j] Lucene indexing bug, NullPointerException

2011-01-13 Thread Balazs E. Pataki
Oh, and it happens with neo4j 1.2. --- balazs On 1/13/11 4:38 PM, Balazs E. Pataki wrote: > Hi, > > under certain circumstances (which I could not yet reproduce in a simple > example) I get this exception from Lucene while searching for a simple > key=value: > >

[Neo4j] Lucene indexing bug, NullPointerException

2011-01-13 Thread Balazs E. Pataki
Hi, under certain circumstances (which I could not yet reproduce in a simple example) I get this exception from Lucene while searching for a simple key=value: IndexHits hits = index.get(OID_PROP, oid); if (hits.size() == 0) { ... } Caused by: java.lang

Re: [Neo4j] Neo4j 1.2 is released

2011-01-05 Thread Balazs E. Pataki
Hi Tobias, I always forget about Neo4j being this smart. :-) Thank you for your answer! --- balazs On 1/4/11 5:11 PM, Tobias Ivarsson wrote: > Hi Balazs, > > I'll be happy to explain that. > > All you need to do in order to enable the management component is to have > the management jar (neo4j-m

Re: [Neo4j] Neo4j 1.2 is released

2011-01-03 Thread Balazs E. Pataki
This is great news, thank you for your work! A read this in the announcement: "Finally, the kernel now has service extensions that load automatically, or can be injected in a running instance. Examples include the Neo4j shell server and the management component." Could you please help how the

[Neo4j] svn certificate problem

2010-11-23 Thread Balazs E. Pataki
When I try to access https://svn.neo4j.org from NetBeans I get the following error: - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! - The certificate has expired Hostname: svn.neo4j.org Certificate information: - Subject: CN=Alpha

Re: [Neo4j] Neo4J server with my embedded server

2010-11-23 Thread Balazs E. Pataki
te my extensions into it. --- balazs On 11/23/10 11:31 AM, Mattias Persson wrote: > 2010/11/23 Balazs E. Pataki > >> Yes, I would like to have what Mattias just described: the webadmin with >> my embedded environment. I usually have an EmbeddedGraphDatabase, which >> I access via

Re: [Neo4j] Neo4J server with my embedded server

2010-11-23 Thread Balazs E. Pataki
connections to embedded >> neo4j instances as part of a release, we want to make sure things are >> tested and have some more features... >> >> If you try, let the community know how it goes so we can support you! >> >> /peter >> >> On Monday, N

[Neo4j] Neo4J server with my embedded server

2010-11-22 Thread Balazs E. Pataki
Hi, I see there's the Neo4j Server in M4, and it looks really cool, especially with its administration console. My question is: is it possible to have an embedded server (a server that I configure from java, with my own settings, indexers, etc) and have this same "Neo4j Web Administration" to

Re: [Neo4j] Neoclipse & Neo 1.2

2010-11-12 Thread Balazs E. Pataki
>> I also encountered another compatibility issue between neo 1.1-1.2: neo >> 1.2 tries to read a wrong value from index.db, so I had to delete >> index.db, let my program rebuild it, then it runs OK. I used the >> laboratory version of the Lucene indexer with neo 1.1. >> > > Oh, good to know. The

Re: [Neo4j] Neoclipse & Neo 1.2

2010-11-12 Thread Balazs E. Pataki
Yes, the same with me. It complains that the database is opened by another process, but it is obviously not. I also encountered another compatibility issue between neo 1.1-1.2: neo 1.2 tries to read a wrong value from index.db, so I had to delete index.db, let my program rebuild it, then it run

Re: [Neo4j] Removing from index a non-existent entry

2010-11-05 Thread Balazs E. Pataki
Thank you very much for the quick response and quick fix! --- balazs On 11/4/10 8:11 PM, Mattias Persson wrote: > I just fixed it, unfortunately it won't make it into the M03... but it's > available in latest SNAPSHOT at least! > > 2010/11/4 Balazs E. Pataki > >>

Re: [Neo4j] Removing from index a non-existent entry

2010-11-04 Thread Balazs E. Pataki
Great, thanks! --- balazs On 11/4/10 4:57 PM, Mattias Persson wrote: > You definately found a bug. I'll try to fix it today so that it is > fixed in the next milestone. Thanks for the report and I'll get back > to you here when it is done! > > > 2010/11/4, Balazs E.

[Neo4j] Removing from index a non-existent entry

2010-11-04 Thread Balazs E. Pataki
Hi, I don't know if it is a bug or not, but the following code: GraphDatabaseService graphDb = new EmbeddedGraphDatabase("x-lucene-indexer-bug"); Transaction tx = graphDb.beginTx(); try { Node n1 = graphDb.createNode(); Node n2 = graphDb.createNode(); Relationship r = n1.createRelations

Re: [Neo4j] How to add an indexer other than Lucene?

2010-11-03 Thread Balazs E. Pataki
tion/XaResource implementation needed to implement > an index is a bit tedious and is bound to be simplified in the future. Until > then you can just look at how the LuceneIndexProvider does things and copy > that. This information is, as you pointed out, missing from the wiki page... > I'l

Re: [Neo4j] How to add an indexer other than Lucene?

2010-11-03 Thread Balazs E. Pataki
http://twitter.com/peterneubauer > > http://www.neo4j.org - Your high performance graph database. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > > > On Wed, Nov 3, 2010 at 3:02 PM, Balazs E. Pataki wrote: >> Hi, >> >> we are tr

[Neo4j] How to add an indexer other than Lucene?

2010-11-03 Thread Balazs E. Pataki
Hi, we are trying to use the Sphinx indexer with neo4j. With the old API we could implement an IndexProvider and do indexing on Nodes created by any GraphDatabaseService (eg. EmbeddedGraphDatabase). Now with the new 1.2M02 milestone release there is the "Index Framework", which is integrated w

Re: [Neo4j] Lucene result sorting

2010-10-20 Thread Balazs E. Pataki
ments, which need to be loaded anyway, and then only "converting" the necessary Documents to Nodes seems more efficient to me. --- balazs On 10/20/10 10:09 AM, Mattias Persson wrote: > 2010/10/20 Balazs E. Pataki > >> Hi Andrés, >> >> I just quickly read through the

Re: [Neo4j] Lucene result sorting

2010-10-20 Thread Balazs E. Pataki
move some Documents, etc. (that's why it provides its own length() for the result list) Do you think such solution is feasible? Regards, --- balazs On 10/20/10 8:24 AM, Balazs E. Pataki wrote: > Hi Andrés, > > Thanks for the answer, looks cool :-) > > I give it a try immediat

Re: [Neo4j] Lucene result sorting

2010-10-19 Thread Balazs E. Pataki
e could be: > > Index myNodeIndex = ... > for ( Node hit : myNodeIndex.query( >new QueryContext( "name:Balazs" ).sort( "name" ) ) ) { >System.out.println( hit.getProperty( "name" ) ); > } > > >> HTH, >> >>

[Neo4j] Lucene result sorting

2010-10-19 Thread Balazs E. Pataki
Hi, Is it possible to do get sorted results form LuceneIndex#query()? It would be really helpful if results would be sorted at "lucene time" according to one or more indexed fields rather than loading the actual neo4j nodes and than iterating over them for sorting. Currently, it seems that sor

Re: [Neo4j] LuceneIndexProvider EXACT_CONFIG vs FULLTEXT_CONFIG

2010-08-27 Thread Balazs E. Pataki
en't that great... but EXACT means that it indexes your > data as it is without chopping it up, whereas FULLTEXT chops up the data > into words and indexes every word separately. > > Both support wildcards, as lucene supports wildcards for both those modes. > > 2010/8/27 Balaz

[Neo4j] LuceneIndexProvider EXACT_CONFIG vs FULLTEXT_CONFIG

2010-08-27 Thread Balazs E. Pataki
Hi, could someone please explain me when to use EXACT_CONFIG and when FULLTEXT_CONFIG when using the nodeIndex() of the LuceneIndexProvider? It seems to me that one cannot execute wildcard searches in FULLTEXT_CONFIG mode, it only works when EXACT_CONFIG is used. But what is actually "exact" t

Re: [Neo4j] Query for combination of properties

2010-07-08 Thread Balazs E. Pataki
n't be implemented into getRelationships (it would > totally break performance). However there are possibilities to create some > other type of indexing (on relationship type for example/direction) > natively. > > 2010/7/8 Balazs E. Pataki > >> Great, thanks! >>

Re: [Neo4j] Query for combination of properties

2010-07-08 Thread Balazs E. Pataki
hone +46 704 106975 >> LinkedIn http://www.linkedin.com/in/neubauer >> Twitter http://twitter.com/peterneubauer >> >> http://www.neo4j.org - Your high performance graph database. >> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing

Re: [Neo4j] Query for combination of properties

2010-07-07 Thread Balazs E. Pataki
+46 704 106975 > LinkedIn http://www.linkedin.com/in/neubauer > Twitter http://twitter.com/peterneubauer > > http://www.neo4j.org - Your high performance graph database. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > >

Re: [Neo4j] Query for combination of properties

2010-07-07 Thread Balazs E. Pataki
> http://www.neo4j.org - Your high performance graph database. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > > > On Wed, Jul 7, 2010 at 3:12 PM, Balazs E. Pataki wrote: >> Toni, >> >> thanks for the hint

Re: [Neo4j] Query for combination of properties

2010-07-07 Thread Balazs E. Pataki
ries" at [2]. > This should give you what you are looking for if i understand that correctly. > > Toni > > [1] > http://components.neo4j.org/neo4j-index/apidocs/org/neo4j/index/lucene/LuceneFulltextQueryIndexService.html > [2] > http://wiki.neo4j.org/content/I

[Neo4j] Query for combination of properties

2010-07-07 Thread Balazs E. Pataki
Hi, I'm new to neo4j and have read quite a lot of documentation and source code and it seems that one can only do queries on a single Node property (a single indexed value mapped to a key) using : IndexHits getNodes( String key, Object value ) This seems to be true for LuceneFulltextIndex