Questions tagged [neo4j]

Neo4j is an open-source graph database (GDB) well suited to connected data. Please mention your exact version of Neo4j when asking questions. You can use it for recommendation engines, fraud detection, graph-based search, network ops/security, and many other user cases. The database is accessed via official drivers in Java, JavaScript, Python and .NET, or community-contributed drivers in PHP, Ruby, R, Golang, Elixir, Swift and more.

Neo4j is a open-source, transactional, high-performance native graph database.

Neo4j stores its data as a graph: Nodes are connected through Relationships, both with arbitrary properties. Neo4j features a graph-centric declarative query language called Cypher. Its drivers support many programming languages. More details in the Online Training and the Neo4j Manual.

Neo4j offers a fully-managed cloud database (Database as a service) called Neo4j AuraDB.

For questions that are not suitable for the Stack Overflow Q&A Format, please reach out on Discord. Neo4j also maintains a public Feedback Board for feature ideas and future development directions.


Useful Links

External Resources


Related Tags

22696 questions
4
votes
1 answer

The difference between Legacy Indexing/Auto Indexing and the new indexing approach in Neo4j

I'm having trouble understanding the difference between the legacy indexing approach and the new indexing approach so perhaps someone could clarify these points for me. My only concern is really how it relates to the Java API and not Cypher…
Usman Mutawakil
  • 4,993
  • 9
  • 43
  • 80
4
votes
5 answers

Get Node ID's in Neo4j using Python

I have recently begun using Neo4j and am struggling to understand how things work. I am trying to create relationships between nodes that I created earlier in my script. The cypher query that I found looks like it should work, but I don't know how…
drowningincode
  • 1,115
  • 1
  • 12
  • 19
4
votes
4 answers

What values are allowable for properties in graph databases (i.e. Titan, OrientDB, ArangoDB, Neo4J)?

I'm pretty new to the NoSQL scene. I'm trying to understand the capabilities and differences between different graph databases. My understanding is that Orient and Arango use documents as vertices (and edges too, right?). I know that in Titan and…
Huliax
  • 1,489
  • 3
  • 15
  • 27
4
votes
1 answer

Neo4j - Cypher vs Scala-Neo4j API

Am new to both Scala and Neo4j. I wanted to use Neo4j embedded in my Scala Project. Which is the better way of using it among Cypher queries and Scala-Neo4j API?
yAsH
  • 3,367
  • 8
  • 36
  • 67
4
votes
4 answers

Performance of Graph vs. Relational databases

I am working on a project where tons of graph operations are performed in near real-time. We are currently using Hibernate, MySQL and EhCache but considering moving all the graph-related persistence to a graph database like Neo4j or Titan. Can graph…
izilotti
  • 4,757
  • 1
  • 48
  • 55
4
votes
1 answer

Neo4j/Cypher - how do I get all dinstinct label triples?

With the introduction of labels, neo4j got a neat mechanisms for managing entities. Now, let's assume for a moment that we have a generic graph with lots of different entities and would like to find out what kind of entities (labels) relate to each…
Michael
  • 695
  • 2
  • 12
  • 36
4
votes
1 answer

Cypher-QueryDSL: 'My "Q" classes cannot be resolved' compile error (e.g. QPerson)

I'm trying to learn how to use Neo4j cypher with QueryDSL. So I downloaded the sources from the neo4j/cypher-dsl GitHub repository, and imported the project into eclipse as a Maven Project. However, when i try to compile and run the tests, i get a…
gipouf
  • 1,221
  • 3
  • 15
  • 43
4
votes
2 answers

Cypher query to find nodes that have 3 relationships

I figured out how to write this query when I am looking for 2 relationships, but not sure how to add more relationships to the query. Assume you have a book club database with 'reader' and 'book' as nodes. The 'book' nodes have a 'genre' attribute…
Dave Michener
  • 1,058
  • 11
  • 30
4
votes
1 answer

Spring Data Neo4j - Adding custom analyzers to lucene indexes (PerFieldAnalyzerWrapper)

Is it possible to customize lucene indexes in spring-data-neo4j, such that my indexes will be using custom analyzers? In particular, i want to use the PerFieldAnalyzerWrapper analyzer, so i will be able to use Exact and Fulltext fields in the same…
gipouf
  • 1,221
  • 3
  • 15
  • 43
4
votes
1 answer

Recursive neo4j query

I have a graph which has categories and sub-categories and sub-sub-categories to indefinite level. How I can I get all this hierarchical data in one cipher query? I currently have this query : START category=node:categoryNameIndex(categoryName =…
RohanJ
  • 261
  • 3
  • 12
4
votes
1 answer

Cypher: ThisShouldNotHappenError: This execution plan should not exist

What's wrong with the following query? [Neo4j 1.8.2, Embedded] start merchant = node:merchants('id:10') match (merchant)<-[:VALID_AT]-(offer)-[:TARGET_PINCODE]->(pincode)<-[:RESIDES_IN]-(customer) where (offer)-[:VALID_OFFER]->() and offer.endDate >…
Luanne
  • 19,145
  • 1
  • 39
  • 51
4
votes
2 answers

Neo4j match multiple relationships

How can I write a query that gets nodes that have relationships to ALL nodes of a set. For example: START n=node:people("username:*"), g=node:groups("groupname:A groupname:B") MATCH n-[:M]->g RETURN n This returns users that have relationships…
Falmarri
  • 47,727
  • 41
  • 151
  • 191
4
votes
1 answer

Can you use numbers for relationship types in Neo4j?

I've created some nodes, and relationships between them with numerical types (eg '3'). Creation works fine, but now I'm having trouble selecting them with Cypher. Since it allows me to create them, I'm assuming the error I'm getting is either…
DougW
  • 28,776
  • 18
  • 79
  • 107
4
votes
2 answers

C# Neo4jClient TaskCancelled Exception

I am making a pretty long query to Neo4j database using Neo4jClient and getting an exception which occurs pretty randomly. How to fix this? System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors…
Martynas
  • 1,064
  • 10
  • 21
4
votes
2 answers

how to have match multiple relationships in cypher

Cypher has got support for OR(|) in match relationship I want something like this Cypher query= ' start n= node:node_auto_index(name=ashish '') MATCH n-[?: f&:t]-> k return k ' Cypher supports this one n-[?:f|:t]->k for 2 …
ashupon
  • 77
  • 8
1 2 3
99
100