Database Reference
In-Depth Information
for that value. When you delete a node, all entries for that node will be removed from all
relevant indexes automatically. The same applies when you update node properties.
Let's take a look at a real example of this in the following listing.
Listing 5.5. Using schema indexes with Java API
This example uses two labels: one for movies, called
MOVIE
, and one for users, called
USER
. These are defined upfront
.
Now you need to define the schema indexes you're going to need. This is very similar to
defining indexes in relational databases. The Java API forindex creation is available under