Re: [Neo4j] Re: Avoiding feedback loop in recommendations system?

2014-01-03 Thread Javad Karabi
Michael, very good point. thank you David, I am simply asking from a general perspective, in a recommendations based system, how does escape from the feedback loop that is generated from a successful recommendations engine suggesting clothes, then those clothes get purchased more, then the recom

Re: [Neo4j] Bulk insert with unique

2014-01-03 Thread Nigel Small
The load2neo plugin might help you (http://nigelsmall.com/load2neo). It uses Geoff (http://nigelsmall.com/geoff) which can represent unique nodes. Cheers Nigel On 3 January 2014 16:04, Michael Hunger wrote: > How much data do you want to insert? > > > Am 03.01.2014 um 16:58 schrieb David Blaney

Re: [Neo4j] Bulk insert with unique

2014-01-03 Thread Michael Hunger
How much data do you want to insert? Am 03.01.2014 um 16:58 schrieb David Blaney : > Hi, > > Is it possible, using the Java API, to bulk insert nodes with a unique > property name? > > I have been able to get the bulk insert and the create unique functionality > working separately but the

[Neo4j] Bulk insert with unique

2014-01-03 Thread David Blaney
Hi, Is it possible, using the Java API, to bulk insert nodes with a unique property name? I have been able to get the bulk insert and the create unique functionality working separately but the integration seems impossible. Maybe it is unsupported or I am missing something Any ideas? Tha

Re: [Neo4j] node.hasProperty("foo") causes NotInTransactionException? (2.0.0)

2014-01-03 Thread M. David Allen
> The only way I think where you get them to "not-mix" is to never return database objects from a cypher query, just primitive values, collections and maps. Like it currently is in the http API. That's exactly what I'm suggesting. It'd be a pretty big change, but that's the way to do it, and h

Re: [Neo4j] node.hasProperty("foo") causes NotInTransactionException? (2.0.0)

2014-01-03 Thread Michael Hunger
Fully agree with you. In both regards. Cypher will get smarter and faster over time but you will always be able to beat it with hand written assembler (aehm SPI code) for certain use-cases (the 10% or 5% case hopefully). The only way I think where you get them to "not-mix" is to never return da

Re: [Neo4j] node.hasProperty("foo") causes NotInTransactionException? (2.0.0)

2014-01-03 Thread M. David Allen
I get what you're saying with "being between worlds", and why that requires you to use transactions. General database nerd stuff ahead...correct me if I'm wrong on this, but... Cypher is a declarative language, where you specify what you want, but you don't get to specify how the engine goes ab

[Neo4j] Batch Inserter and TimelineIndex [v1.9.4]

2014-01-03 Thread Smit Sanghavi
Hi, I am using BatchInserterIndex to ingest a large amount of data to Neo4j DB. I intend to add nodes to a TimelineIndex (Lucene) during the batch. Now, in the normal way, TimelineIndex takes (node, long) to add in the index. It probably is using the key 'timestamp' internally. (Checked in Luc

[Neo4j] BatchInserter and TimelineIndex [v1.9.4]

2014-01-03 Thread Smit Sanghavi
Hi, I am using BatchInserterIndex to ingest a large amount of data to Neo4j DB. I intend to add nodes to a TimelineIndex (Lucene) during the batch. Now, in the normal way, TimelineIndex takes (node, long) to add in the index. It probably is using the key 'timestamp' internally. (Checked in Luc

[Neo4j] Right to Left Languages (R2L Lang) i.e. Arabic

2014-01-03 Thread Omar Isbaitan
Hi all, I am working on graph data base in Arabic and during my search I found Neo4J as a good tool for Graph DB, I have downloaded Neo4j 2.0 and it works with Arabic and I have the following comments may be some one can help?? 1- Did any one used Neo4J in R2L Lang i.e. Arabic (sample or real pro

Re: [Neo4j] Re: Avoiding feedback loop in recommendations system?

2014-01-03 Thread Michael Hunger
Also the data the recommendation is based on is not static and not only relying on the recommendations. So there are people buying, liking etc. new products come in some are promoted, there are hypes etc. Lots of variables that affect the data that is fed into the recommendation, and then peop

Re: [Neo4j] Add relation in existing node

2014-01-03 Thread Michael Hunger
How many knows relationships do you have per person? I think you should also check your configuration, 4GB of RAM is a bit on the low side, you might end up using swap all the time. You should have enough non-heap RAM for some decent memory mapping of your store-files And enough heap for sensibl

Re: [Neo4j] node.hasProperty("foo") causes NotInTransactionException? (2.0.0)

2014-01-03 Thread Michael Hunger
Right, the same happens in Neo4j if you use cypher (comparable to SQL). But if you use the java-API you kind are below the query language level (somewhere where you would never get in a rdbms) and there tx-management is manual. In general we want to move away from the Java-API to a more query l

[Neo4j] Re: Avoiding feedback loop in recommendations system?

2014-01-03 Thread M. David Allen
Javad, The graph database would probably just store the list of things you could choose amongst for your recommendations; a graph database doesn't do recommendations, and hence whether or not those recommendations would reenforce one another would depend on the kind of algorithm you're using f

Re: [Neo4j] Add relation in existing node

2014-01-03 Thread Navrattan Yadav
Neo4j version : 2.0.0-M06 . Operating System : linux Ram : 4GB sir we get slow when we get 2nd degree friends for a user.Then most of People Suggest to create more relation : So we are creating more relation to make it faster. Code for creating relation : Using Java API : public void addFriend

Re: [Neo4j] node.hasProperty("foo") causes NotInTransactionException? (2.0.0)

2014-01-03 Thread M. David Allen
Thanks to both of you for those responses. They totally make sense. Like many people, I'm riding the learning curve with graph databases. I've been doing RDBMS work forever, and only working with neo4j for about a year and a half, and there's still so many things I don't know yet. RE: the use

Re: [Neo4j] 2 Questions

2014-01-03 Thread Sukaant Chaudhary
Hi Mehmet, I hope following answers will be helpful: *Answer 1* START n=node({startnode}), m=node({endnode}) MATCH p=(n)-[r]->(m) RETURN r; *Answer 2* START n=node:node_auto_index("id:*") WHERE NOT (n-->m) RETURN n; -Sukaant Chaudhary On Fri, Jan 3, 2014 at 5:33 PM, Mehmet Simsek wrote: >

Re: [Neo4j] embedded API unique node creation using schema index

2014-01-03 Thread Wes Freeman
ExecutionEngines are used to run Cypher. You don't need to use Cypher if you don't want to--just don't run that last line. The Java API will respect the unique constraint as well. Wes On Thu, Jan 2, 2014 at 10:11 AM, Alex Frieden wrote: > Yes, but isn't that returning an executionengine when yo

Re: [Neo4j] Add relation in existing node

2014-01-03 Thread Michael Hunger
You have to share more details. what versions do you use what is your stack what APIs do you use share the code to create the relationships what is getting slow how many concurrent users do you have etc. Sometimes a slowdown is related to doing just one single update per transaction and having

[Neo4j] Add relation in existing node

2014-01-03 Thread Navrattan Yadav
Hi ... Currently we have 1.5 million node and one relation : KNOW between them. Basic Model is : when a user register we add KNOW relation to all his friends. (friends are :phone book friends) Now its getting slow as user increase. so we want to add more relation based on : COU

[Neo4j] 2 Questions

2014-01-03 Thread Mehmet Simsek
Hello everyone, I'm newbie about Neo4j and I couldn't solve some problems. If you answer my questions, I'll be very pleased. My graph is very simple, there is only one type node and every node has only one type property. Node A is related with Node B and Node C is related with Node B and Node E i

[Neo4j] Spring Data Neo4j - findAllByPropertyValue does not work

2014-01-03 Thread David Yang
Hi When i indexed a property with full text, the sdn function findAllByPropertyValue does not return any result: personRepository.findAllByPropertyValue("person_name", "name", "David Yang"); //THIS DOES NOT WORKS When find by: personRepository.findAllByPropertyValue("person_id", "nric", "12345