Questions tagged [neo4j-apoc]

APOC is short for "Awesome Procedures on Cypher." Introduced in Neo4j release 3.0, APOCs are callable procedures which extend the Cypher query language.Questions with the neo4j-apoc tag should be for "small, generic helper functions for common tasks" that are not available in the Cypher query language.

APOC procedures are "User Defined Procedures." They are similar to stored procedures in some relational databases. APOCs can be written in any language that runs on the JVM. Questions tagged with neo4j-apoc should have an accompanying tag for the specific language being used.

Built in procedures are included in Neo4j releases. Before posting a question on StackOverflow, please consult the Neo4j documentation and ask if your task is possible in the public chat channels.

685 questions
0
votes
1 answer

Configuring apoc.refactor.MergeNodes()

I'm testing the apoc procedure on this set-up: CREATE (:testNode{id:"1"})-[:TAGS{id:"r1"}]->(:tag{id:"h"}) CREATE (:testNode{id:"2"})-[:TAGS{id:"r2"}]->(:tag{id:"H"}) And then running this: MATCH (htag:tag), (gtag:tag) WHERE…
Scofflaw
  • 152
  • 2
  • 10
0
votes
0 answers

Neo4j 3.1.2 Embedded db shutdown is not working with apoc.periodic.iterate

I am starting Neo4j embedded application with shutdown hook and apoc procedures registration. I am using apoc.periodic.iterate procedure call with {batchSize:100,parallel:true,iterateList:true} config. After getting Result, i am calling…
Amit G
  • 15
  • 5
0
votes
1 answer

find the first node in path not having relationship

I have relationships and nodes like this (x:Execution)-[:with]->(first:Param)->[:with]-(second:Param)-...[:with]->(last:Param) Here (Param) can be any number of times and (Execution) is optional and may be missing. I need to find all such…
Fayaz
  • 314
  • 6
  • 20
0
votes
1 answer

Neo4j Liquigraph and changeset with APOC triggers

I'd like to install the following triggers with Liquigraph changeset: CALL apoc.trigger.add('HAS_VALUE_ON_ADD_TO_INDEX', 'UNWIND {createdRelationships} AS r MATCH…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

Neo4j APOC trigger on relationship delete

In my Spring Data Neo4j application I have implemented test that creates the nodes and relationships. So far everything is working fine. In order to improve application performance, I'd like to try to use manual indexes for relationship…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Neo4j APOC trigger and Manual Index on Relationship Properties

I'd like to setup Neo4j APOC trigger that will add all relationship properties to manual index, something like the following: CALL apoc.trigger.add('HAS_VALUE_ON_INDEX',"UNWIND {createdRelationships} AS r MATCH…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Neo4j APOC Manual Index on Relationship Properties

In my Neo4j/APOC application I have the relationship HAS_VALUE_ON with value property: Let's say I have 2 relationships with the followng array values: "value": [ "Java", "Python", ".NET" ] "value": [ "Java", "Python" ] I…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

How do I call neo4j apoc functions using .net

Nodes : Template -> Id =1 , Name = T1; Segment -> Id =1 , Name = S1; Segment -> Id =2 , Name = S2; Relationships : T1 - [r1:REL] -> S1; T1 - [r2:REL] -> S2 Each relationship ( r1 and r2) has a property called LineIds which are integer…
0
votes
1 answer

apoc.index.search returning OR results instead of performing an AND

I have set up a full text index on one field using the following apoc query CALL apoc.index.addAllNodes("CompName", {Basic_company_data:["CompanyName"]}) It seems to create the index correctly. If I then run this query call…
SAB
  • 175
  • 17
0
votes
0 answers

Neo4j a way to keep pipe results and regenerate variable

I have a User node with two properties: partitaionA and partitionB which I generated from unionFind in graph algorithms package. I want to do something like below but keep expanding like union operation. partitionA -> partitionB -> partitionA ->…
mlo0424
  • 359
  • 2
  • 4
  • 16
0
votes
1 answer

Automatically populate relationship index in Neo4J 3.x?

In Neo4J 2.x there was a special option in conf settings to automatically index certain relationship properties. But how to do it in 3.x? Can it automatically populate relationship index and which APOC function could be used for that? I can't find…
Aerodynamika
  • 7,883
  • 16
  • 78
  • 137
0
votes
1 answer

Execute multiple query based on multiple condition in cypher / apoc

In cypher or APOC, Is there a way to execute multiple query based on multiple condition. I need something similar this APOC CALL apoc.do.case([condition, query, condition, query, …​], elseQuery:'', params:{}) yield value But here as soon as we…
Shishal
  • 27
  • 1
  • 9
0
votes
1 answer

Neo4j - To compare two nodes properties with apoc.text.phonetic

Within a Graph of Persons some of the nodes are connected with a SAME_AS relationship. (p1:{name:'m.Verena von Habsburg-Laufenburg'})-[SAME_AS]-(p1:{name:'2m: 9.2.1354 Verena von Habsburg-Laufenburg'}) In the first example these persons are really…
Andreas Kuczera
  • 353
  • 1
  • 2
  • 14
0
votes
1 answer

Compute all the relationships between 2 nodes

I am trying to calculate all the relationships between 2 nodes: For me the shortestpath, allshortestpaths and apoc.algo.dijkstra work perfectly. But these don't fetch all relationships between 2 nodes. This is my query which works very fast:…
joe
  • 143
  • 10
0
votes
0 answers

Neo4j Community 3.2.5 - Missing APOC procedures

Command CALL dbms.procedures() shows the standard 25 dbms procedures, cannot see APOC procedures. Any call to these procedures outputs an error saying that it cannot find it and to check spelling, etc. Neo4j Community 3.2.5 Added…
guzu92
  • 737
  • 1
  • 12
  • 28