Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find a particular node in Neo4j

Tags:

java

graph

neo4j

how to find the particular node using the Neo4j API.When i refereed the docs i got some code to get all nodes However if i have a node called "XYZ" I would like to know how to obtain ONLY that particular node.

like image 214
prassee Avatar asked Dec 23 '10 08:12

prassee


People also ask

What does match do in Neo4j?

The MATCH clause allows you to specify the patterns Neo4j will search for in the database. This is the primary way of getting data into the current set of bindings. It is worth reading up more on the specification of the patterns themselves in Patterns.

How node is represented in Neo4j?

A graph with three nodes (the circles) and three relationships (the arrows). The Neo4j property graph database model consists of: Nodes describe entities (discrete objects) of a domain. Nodes can have zero or more labels to define (classify) what kind of nodes they are.


1 Answers

Take a look at the Indexing Service which will allow you to index your nodes with key-value pairs. Once you've indexed your nodes you can query the graph and retrieve nodes which match a given key-value.

like image 127
dogbane Avatar answered Sep 17 '22 06:09

dogbane