Database Reference
In-Depth Information
Listing 5.6. Updating multiple schema indexes
In this example, you define indexes for two labels, one for regular users, USER , and one
for admins, ADMIN
. Then you create a single node that represents both a regular user
andanadmin,usingtwolabels
.You'dexpectthatthisuserwouldbesearchableacross
normal users as well as admins, and the next two steps confirm that this is the case ( ,
).
So far you've seen how the index gets populated on node creation. We've also mentioned
thatschemaindexesgetupdatedwhenanodeisdeleted.Thefollowingcodesnippetshows
this:
Search WWH ::




Custom Search