9,923 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
45
views
How can I perform a hybrid vector and graph search in a single Cypher query?
I am building a GraphRAG application and need to find nodes based on semantic similarity (vector search) and then immediately traverse their relationships (graph search). How can I combine these into ...
0
votes
1
answer
50
views
Efficient Search Across Elasticsearch and Neo4j Without Pulling Large Result Sets
here i got :
Elasticsearch stores most of the searchable / document-like data (text fields, city, etc.)
Neo4j stores relationships and some entity attributes (e.g., gender, graph connections)
Each ...
1
vote
2
answers
50
views
Neo4j has issues with loading Reactome Graph Database
I have been trying to start exploring the Reactome Graph Database today following the instructions given at https://reactome.org/dev/graph-database#GetStarted
I have installed Neo4j Desktop 2 (version ...
Best practices
0
votes
0
replies
76
views
Cypher - best practice to find OR between relations
I've been trying to find the best (easiest to adjust and modify, and most efficient) way to implement and find an OR relation between Neo4j graph relations.
For reference - my Neo4j DB can contain ...
2
votes
1
answer
78
views
How to specify more than two relationships to the same node in a `MERGE`
I have this situation
CREATE (a:X { id: 1 })
CREATE (b:Y { id: 2 })
CREATE (c:Z { id: 3 })
CREATE (:Z { id: 4 })
CREATE (a)-[:HAS]->(d:W { id: 5 })<-[:HAS]-(b)
CREATE (c)-[:HAS]->(d)
And I ...
1
vote
1
answer
71
views
Why doesn't this Neo4j query return anything when the second list is empty?
If I run this query
UNWIND [1,2,3] AS a
WITH collect(a) AS la
UNWIND [4,5,6] AS b
WITH la, collect(b) AS lb
RETURN la, lb
I get this result
la
lb
[1, 2, 3]
[4, 5, 6]
If I change the FIRST list to [], ...
0
votes
4
answers
100
views
Understanding indexes in Neo4j
I have a fairly complicated Cypher query as follows:
MATCH (n1:Object {id:299235,type:3})-[r1:COMPARED_TO]->(n2:Object {type:3})-[r2:COMPARED_TO]->(n3:Object {type:3})-[r3:COMPARED_TO]->(n4:...
0
votes
1
answer
82
views
Matching variable length paths in Neo4j with WHERE
I am getting my head around a Neo4j database that links people together, along with details of how they are connected.
Specifically I have a "Person" node and a "KNOWS" ...
1
vote
1
answer
40
views
Neo4J (5.14.0): add labels based on values in CSV file
I'm trying to create nodes with one set label (:object) and two additional labels that are based on values in the following CSV file:
Object_ID
Classification
Hierarchy_name
Object_type
O0010
...
0
votes
0
answers
26
views
Masking string quotes goes wrong in cypher
We have some objects in our DB, which roughly look like this:
MATCH (:State)--(sV:StateVal) WHERE sV.notOnDate IS NOT NULL RETURN sV LIMIT 2;
+----------------------------------------------------------...
0
votes
1
answer
39
views
Calculating percentage from relationships in a multi-node path in Neo4j
I have a non-cyclical graph, where all the nodes are of type (label) Entity and all relationships are of type OWNS. Each relationship is guaranteed to have a property Percentage, which is the numeric ...
3
votes
1
answer
57
views
User Input Processing(getting rid of typos: when they do not have space(s)
I'm building graph query to Cypher and trying to process user input with fuzzy matching and then filtering with Lavenshtein distance. This works really well for the most cases for me but I struggle ...
0
votes
0
answers
146
views
How to form a projection while filtering some nodes in Neo4j
I have the following query in Neo4j using the Python library graphdatascience:
G, result = gds.graph.project(
"communities", # Graph name
"__Entity__", # Node ...
0
votes
1
answer
43
views
Fastest approach on non directional paths. Neo4j
I have a path like this:
MATCH (n:Parent)-[:has_parent|has_child*..2]-(m:Deceased)
RETURN n.name, n.age, m.name,m.age
My problem of course is that this is non-directional and super slow. In this path ...
0
votes
0
answers
85
views
JanusGraph query slower than Neo4j — same query structure, different Kubernetes cluster & backends (Cassandra/ES)
I'm running two different graph database setups on separate Kubernetes clusters (with the same configuration) and facing performance issues with JanusGraph compared to Neo4j. Here's the detailed setup:...