Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-08-24 Thread Nuo Yan
Sent through direct mail. Also one thing I forgot to mention was that for a few occasions that the server was able to start after a few tries after the error; other times I tried enough times and since it's my dev machine so I decided to clear/move the database and restart (which has always led

[Neo4j] [neo4j] AWS Elastic Beanstalk and Neo4j

2011-08-24 Thread Bryan Le
Hi all, i try to deploy the my application to AWS Elastic Beanstalk with Tomcat 7. The app runs well in localhost. I include all the jar files to war lib. When i run the code - GraphDatabaseService neo = new EmbeddedGraphDatabase( /opt/tomcat7/webapps/ROOT/var/graphdb ); - and it did create the

[Neo4j] Neo4j Spatial GIThub rename

2011-08-24 Thread Peter Neubauer
Hi folks, we are in the process of releasing Neo4j Spatial 0.6, and in the process I renamed the project in GIThub to https://github.com/neo4j/spatial . Just a heads up - this shouldn't break anything except direct URLs to the repo. Forks and branches should be fine, the artifact name is still the

Re: [Neo4j] [neo4j] AWS Elastic Beanstalk and Neo4j

2011-08-24 Thread Peter Neubauer
Bryan, do you get any exceptions in any log? What is happening in the graphdb/messages.log? 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

[Neo4j] compound query across keys

2011-08-24 Thread sambodhi sagi
In graph repository I did not find a method which can be used to fire compound query across different keys. The available methods takes 'key' as input: graphRepository.findAllByQuery(indexname, key, query) But i my case I want to fire a query across keys. Something like code snippet below.

[Neo4j] pagination with traversal and search query results

2011-08-24 Thread sambodhi sagi
Hi!! Does Spring/Neo4j provides api to get paginated results from traversal and search queries? Many Thanks, Sambodhi ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] compound query across keys

2011-08-24 Thread Peter Neubauer
Hi Sambhodi, https://github.com/neo4j/community/blob/master/server/src/functionaltest/java/org/neo4j/server/rest/IndexNodeFunctionalTest.java#L222 shows the setup of http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html#rest-api-find-node-by-query which is inserting the same node into the

Re: [Neo4j] pagination with traversal and search query results

2011-08-24 Thread Peter Neubauer
Well, there is no built-in paging in the core API, but you can do similar things (not caching, but actually requesting different parts of the result set) by using Gremlin/Groovy functions to pick out parts of the results, or Cypher skip/limit functionality, see

Re: [Neo4j] compound query across keys

2011-08-24 Thread sambodhi
Thanks for the prompt Peter! I got bit jumbled up there. Are you saying that SDG's core api does not allow to index same node with different KEYS? Or it does not allow same node to be in different INDICES? In my case my entity looks like this: @NodeEntity public class Product {

Re: [Neo4j] pagination with traversal and search query results

2011-08-24 Thread Jim Webber
There is a PagingIterator however in the API which allows you to page results by wrapping the IteratorT that gets returned from many API calls. See: http://components.neo4j.org/neo4j/1.4.1/apidocs/org/neo4j/helpers/collection/PagingIterator.html Jim

Re: [Neo4j] compound query across keys

2011-08-24 Thread Peter Neubauer
Sambhodi, I am not really sure, this is Michaels domain. But from looking at the core API, I am saying that        @Indexed(indexName = product-search) and        @Indexed(indexName = product-search, fulltext=true) Should end up in different indexes, while        @Indexed(indexName =

[Neo4j] IMDB Error 503 in setup.html

2011-08-24 Thread elfranco
Dear all, I'm testing Neo4J and I have installed the IMDB example. I have followed the instructions but unfortunatly I can't import the data. when I connect to http://myip:9090/imdb/setup.html this is the error I have: HTTP ERROR 503 Problem accessing /imdb/setup.html. Reason:

Re: [Neo4j] IMDB Error 503 in setup.html

2011-08-24 Thread Peter Neubauer
Hi there, what project are you using? This sounds like old or outdated code, or version clashes ... Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

Re: [Neo4j] IMDB Error 503 in setup.html

2011-08-24 Thread elfranco
Hi Peter, thank you for the fast answer! I have downloaded the code here: http://wiki.neo4j.org/content/IMDB_Example downloaded imdb-1.0-src.tar.gz using neo4j v.1.3 (2011-04-11) community ed. does this answer your question? franz -- View this message in context:

Re: [Neo4j] IMDB Error 503 in setup.html

2011-08-24 Thread Peter Neubauer
Oh, sorry, this example is totally outdated with the awesomeness of the Spring Data Graph bindings. Do https://github.com/SpringSource/spring-data-graph-examples/tree/master/imdb instead: git clone https://github.com/SpringSource/spring-data-graph-examples.git cd

Re: [Neo4j] [neo4j] AWS Elastic Beanstalk and Neo4j [resolved]

2011-08-24 Thread Bryan Le
Peter, thank you for your advice. After looking at the messages.log, it appeared that there is no transactions. So, i took a look at the code, then figured out that web.xml set up the servlets improperly. After fixing the web.xml, the problem went away. Really appreciate your help. Best

[Neo4j] Query/design question: trusted followers scenario

2011-08-24 Thread Aseem Kishore
Hi guys, We're building a social network which has an asymmetrical follower model like Twitter's: users follow each other. We have various views where we show a list of people. This could be e.g. all people in the network, or it might be some user's followers, or it might be a list of people

Re: [Neo4j] Cypher: node IDs

2011-08-24 Thread Andres Taylor
Hi Aseem, For various reasons, we've (so far) decided against allowing the id to be something you can output. Could you tell me a bit more about why you would like to return just the id? It's not hard to do, but it would make future parts of Cypher harder to do. If there are valid use cases

Re: [Neo4j] Cypher: multiple match clauses, but OR, not AND

2011-08-24 Thread Andres Taylor
On Wed, Aug 24, 2011 at 5:44 PM, Aseem Kishore aseem.kish...@gmail.comwrote: Here's my use case: I want to show my friends' comments and likes. For comments, I can do e.g. (friend) -[:WROTE]- (comment), and for likes, I can do e.g. (friend) -[:LIKES]- (object), but is there a way I can

Re: [Neo4j] Cypher: multiple match clauses, but OR, not AND

2011-08-24 Thread Andres Taylor
Forgot to mention it: We've changed ~TYPE to .TYPE. It's in out snapshot version. Just a heads up. Andrés On Wed, Aug 24, 2011 at 6:02 PM, Andres Taylor andres.tay...@neotechnology.com wrote: On Wed, Aug 24, 2011 at 5:44 PM, Aseem Kishore aseem.kish...@gmail.comwrote: Here's my use case:

Re: [Neo4j] Cypher: node IDs

2011-08-24 Thread Aseem Kishore
I was asking really only for the console. I don't see myself needing to use the ID programmatically -- except it might be a minor optimization to be able to get only node URLs if I already have node data, and I just want to compare the output of this query with the nodes I already have. For the

Re: [Neo4j] Cypher: multiple match clauses, but OR, not AND

2011-08-24 Thread Aseem Kishore
Yes, this allows specifying multiple relationship types -- as long as the direction is the same. Thanks! It would still be extremely useful to be able to specify this when the directions also differ. (Or in some cases, the shapes of the path also differ.) Cheers, Aseem On Wed, Aug 24, 2011 at

[Neo4j] setProperty Exception

2011-08-24 Thread John Howard
I am using embedded 1.4.1 I get these 2 strange exceptions almost simultaneously when try to create a new property. java.lang.NullPointerException at org.neo4j.kernel.impl.nioneo.store.DynamicArrayStore.allocateFromString(DynamicArrayStore.java:142) at

[Neo4j] Neo4jPHP batch insert benchmarks

2011-08-24 Thread jadell
Hey all, I've been working on adding batch support to http://github.com/jadell/Neo4jPHP Neo4jPHP . Here are the results of my latest benchmarks. First column is the number of nodes being inserted, second column is the average in seconds over 5 runs to insert that many nodes in a single batch,