Database Reference
In-Depth Information
The label that specifies the schema index to use is defined as part of the node identifier,
separated by a colon . You must put the node identifier with the associated label inside
parentheses. The index query is specified as part of the where clause, very similar to how
it's done in SQL
.
Note
Label-basedindexescanonlybeusedforlookupsonthefullpropertyvalues.Forafulltext
search, you'll have to use manually created indexes as discussed in the previous section.
You now know how to use an index to look up nodes in the start clause of a Cypher
query. But what if you want to fix multiple nodes on your graph pattern when executing
a Cypher query and match them separately? What if you want to find all movies that both
John and Jack have seen? Don't worry—this is also easy to achieve with Cypher, by spe-
cifying distinct multiple starting nodes as graph entry points.
Multiple start nodes in Cypher
To specify multiple entry points to the graph, you can use a comma-separated list in the
start clause of the Cypher query, as the following snippet illustrates:
Search WWH ::




Custom Search