neo4j

querying with an “IN” clause using the index in neo4j with Cypher

帅比萌擦擦* 提交于 2019-12-09 18:24:02
问题 I'd like to use my auto_index in neo4j and pass in an array of strings to match against. I know that you can add an IN clause to the end of your cypher query but that doesn't use the indexes and I'm assuming will do a database scan of all the records. What's the best way to do this with an index query? e.g. Get me users whose facebookId is in ["123", "456", "789"] assuming there is an auto_index on facebookId and there are 1 million user nodes. 回答1: I suppose this is worth posting as an

Using Java 7 with neo4j on OS X

↘锁芯ラ 提交于 2019-12-09 17:37:09
问题 After upgrading Java to 7u45 in system preferences, Neo4j was still warning me about using the wrong version: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. I want to use neo4j v2, which doesn't support Java 6, so I needed to fix this. 回答1: I started a neo4j 1.9.4 server, and ran neo4j info . The output included this line: JAVA_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home So obviously, I needed to set JAVA

Cypher Learning for Web Devepers [closed]

大城市里の小女人 提交于 2019-12-09 12:04:30
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I want to use Neo4j for my web applications. I am using Node.js for the server side. As I understand, I will have to learn Cypher to

Alternative IndexProvider for Neo4J 1.9.1

岁酱吖の 提交于 2019-12-09 05:39:33
问题 I'm using Lucene 4 in my application and don't want to change this. I'm trying to integrate Neo4J which bundles Lucene 3.5 as an IndexProvider implementation, neo4j-lucene-index. Unfortunately, neo4j-lucene-index does not work, and with that dependency excluded, the app just hangs indefinitely on start up. I've tried neo4j-lucene4-index but that does not seem to be maintained very well and needs to be updated quite significantly to work with Neo4J 1.9.1. The changes go way beyond my

neo4j windows desktop: Unrecoverable authentication error

懵懂的女人 提交于 2019-12-09 04:32:32
I run ne04j-desktop-1.0.6-setup.exe to install the desktop neo4j application, and it proceeds through the install up to the point where it opens, and then gives the message (in a red warning rectangle with only a dismiss button) "Unrecoverable authentication error". How can I find out what the error is and try to fix it? I had this problem too, try to put the comptability mode on Windows 7. If it don't work immediatly, try to reload the app by clicking on "Reload" in the "Developper" tab. 来源: https://stackoverflow.com/questions/47540422/neo4j-windows-desktop-unrecoverable-authentication-error

Using regular expressions beyond matching in Cypher

北城余情 提交于 2019-12-09 03:46:34
问题 I make the following query neo4j-sh (?)$ start n=node(*) where n.name =~ 'u(.*)' return n; ==> +-----------------------+ ==> | n | ==> +-----------------------+ ==> | Node[311]{name:"u1"} | ==> | Node[312]{name:"u2"} | ==> | Node[313]{name:"u3"} | ==> | Node[314]{name:"u4"} | I want to add a "userId" property and set it the number in the name key. I mean I want ==> +-----------------------+ ==> | n | ==> +-----------------------+ ==> | Node[311]{name:"u1", userId:'1'} | ==> | Node[312]{name:

How to open Neo4J Webadmin to remote control?

坚强是说给别人听的谎言 提交于 2019-12-09 02:49:15
问题 I have installed a Neo4J instance on my server on port 7474. My domain is also using that server and I want webadmin to be used remotely with a username and a password like this: example.com:7474 Is there a way to do that? I could not find any guideline in the Neo4J documentation. 回答1: Did you get a chance to go through Neo4j Server Configuration documentation? It says: #allow any client to connect org.neo4j.server.webserver.address=0.0.0.0 This line in conf/neo4j-server.properties is

Neo4j Bidirectional Relationship

馋奶兔 提交于 2019-12-09 02:12:25
问题 Is there a way to create bidirectional relationship in Neo4j using Cypher? I would like the relationship to be bidirectional rather than making two unidirectional relationships in both directions For eg: (A)<-[FRIEND]->(B) Rather than: (A)-[FRIEND]->(B) (A)<-[FRIEND]-(B) Thanks in advance :) 回答1: No, there isn't. All relationships in neo4j have a direction, starting and ending at a given node. There are a small number of workarounds. Firstly, as you've suggested, we can either have two

A Neo4j container (docker) with initial data in it

你离开我真会死。 提交于 2019-12-09 01:04:20
问题 Other database dockers that I've worked with (like Postgres) have a mechanism to import some initial data into their empty instance once the container starts for the first time. This is usually in form of putting your SQL files in a specific folder. I need to do the same for Neo4j. I want to compose a Neo4j docker image with some data in it. What's the right way to do this? 回答1: This could be achieved... There are 2 requirements: set initial password, which could be achieved using bin/neo4j

Load an object in Neo4j OGM 1.1.3 ogm depth of 2 very slow

柔情痞子 提交于 2019-12-08 21:57:28
问题 I get a timeout while querying for depth 2 using session.load() .I'm working with Neo4j OGM 1.1.3 (Attempting to migrate from Spring Data Neo4j 3.4). Trying to load a Node object class Node { Long id; String name; @Relationship(type="NodeToCategory") Category category; @Realtionship(type="NodeToChildNode") Node node } class Category { Long id; String name; String color; Date createdAt; } The category that is connected to my node is very popular (20,000 nodes have the same category) and when I