neo4jclient

Map params with Merge or build a Batch operation via the client?

▼魔方 西西 提交于 2019-12-02 20:14:05
问题 Is there any way to map params passed in using Merge? Ideally, this is what I want to do: Merge node (create if not exists, or update the entire node properties - which are dynamic) MERGE (c:Label {Id : {map}.Id}) SET c = {map} This can be done easily when the map is a single object and you are only updating a single node, but I would love to be able to do this as a bulk operation. Pass in List and have that auto map. Granted, I don't think this is currently possible using Cypher Merge, but

Working with index in Neo4j

限于喜欢 提交于 2019-12-02 19:30:57
问题 I've been going through the Neo4J and Neo4J C# client.. The neo4jclient wiki helped me to with node crud operations.. however the wiki ends there abruptly.. I poked around the test methods in source code and managed to understand about relationships and searched online to understand how indexing works. So far, here's what I have, roughly: //create indexing on user and car client.CreateIndex("User", new IndexConfiguration() { Provider = IndexProvider.lucene, Type = IndexType.fulltext },

Neo4j 2.0 Merge with unique constraints performance bug?

江枫思渺然 提交于 2019-12-02 12:00:05
问题 Here's the situation: I have a node that has a property ContactId which is set as unique and indexed. The node label is :Contact (node:Contact {ContactId:1}) I have another node similar to that pattern for Address: (node2:Address {AddressId:1}) I now try to add a new node that (among other properties, includes ContactId (for referencing)) (node3:ContactAddress {AddressId:1,ContactId:1}) When I run a merge command for each, the time for adding a node that contains a property that is set as

Map params with Merge or build a Batch operation via the client?

霸气de小男生 提交于 2019-12-02 10:18:52
Is there any way to map params passed in using Merge? Ideally, this is what I want to do: Merge node (create if not exists, or update the entire node properties - which are dynamic) MERGE (c:Label {Id : {map}.Id}) SET c = {map} This can be done easily when the map is a single object and you are only updating a single node, but I would love to be able to do this as a bulk operation. Pass in List and have that auto map. Granted, I don't think this is currently possible using Cypher Merge, but it could be done using the REST API Batch methods, however, it is not clear how to build a batch using

Returning multi value in dynamic query using neo4j client

自古美人都是妖i 提交于 2019-12-02 09:51:03
问题 Following the question I asked: Build a dynamic query using neo4j client I got an answer about how can I return value dynamically using string only. When I'm trying to use the syntax to return multi values from the query it failed, I tried the following query: var resQuery2 = WebApiConfig.GraphClient.Cypher .Match("(movie:Movie {title:{title}})") .OptionalMatch("(movie)<-[r]-(person:Person)") .WithParam("title", title) .Return(() => Return.As<string>("movie, collect([person.name, head(split

Working with index in Neo4j

匆匆过客 提交于 2019-12-02 09:46:25
I've been going through the Neo4J and Neo4J C# client.. The neo4jclient wiki helped me to with node crud operations.. however the wiki ends there abruptly.. I poked around the test methods in source code and managed to understand about relationships and searched online to understand how indexing works. So far, here's what I have, roughly: //create indexing on user and car client.CreateIndex("User", new IndexConfiguration() { Provider = IndexProvider.lucene, Type = IndexType.fulltext }, IndexFor.Node); client.CreateIndex("Car", new IndexConfiguration() { Provider = IndexProvider.lucene, Type =

Remote Neo4j web console

最后都变了- 提交于 2019-12-02 08:57:39
I am using Neo4j 2.0 server on Cent-OS machine. This needs be accessed from a remote web-based console. In the database,the server data location points to the folder containing the data. When I start the database and try to access it from a remote machine, the data doesn't show up. What could be the reason for this ?? I modeled the database on a windows machine and then take this data to remote unix machine and point that server to this folder(which is created on windows, but on UNIX based system).Is it appropriate to do? Does linux identifies the data files created on windows. 来源: https:/

Returning multi value in dynamic query using neo4j client

﹥>﹥吖頭↗ 提交于 2019-12-02 06:14:31
Following the question I asked: Build a dynamic query using neo4j client I got an answer about how can I return value dynamically using string only. When I'm trying to use the syntax to return multi values from the query it failed, I tried the following query: var resQuery2 = WebApiConfig.GraphClient.Cypher .Match("(movie:Movie {title:{title}})") .OptionalMatch("(movie)<-[r]-(person:Person)") .WithParam("title", title) .Return(() => Return.As<string>("movie, collect([person.name, head(split(lower(type(r)), '_')), r.roles])")); I'm getting the following error: The deserializer is running in

Neo4j 2.0 Merge with unique constraints performance bug?

荒凉一梦 提交于 2019-12-02 04:32:45
Here's the situation: I have a node that has a property ContactId which is set as unique and indexed. The node label is :Contact (node:Contact {ContactId:1}) I have another node similar to that pattern for Address: (node2:Address {AddressId:1}) I now try to add a new node that (among other properties, includes ContactId (for referencing)) (node3:ContactAddress {AddressId:1,ContactId:1}) When I run a merge command for each, the time for adding a node that contains a property that is set as unique in another node type seems to make the process much slower. The ContactAddress node only contains

How to create an embedded Neo4j database in c#

爱⌒轻易说出口 提交于 2019-12-02 00:12:31
问题 How do I create an embedded Neo4j database in c#? I want to perform queries on this embedded database for testing and then discard it. Currently i'm using neo4jclient for performing queries on the database running on my system(localhost) but want to do this on an embedded database. How do I go about this? This feature is present in Java in the following way: GraphDatabaseFactory graphDbFactory = new GraphDatabaseFactory(); GraphDatabaseService graphDb = graphDbFactory .newEmbeddedDatabase(