Learn R Programming

RNeo4j (version 1.6.4)

dropIndex: Indexes

Description

Drop the index(es) for a given node label and property key or for the entire graph database.

Usage

dropIndex(graph, label = character(), key = character(), all = FALSE)

Arguments

graph
A graph object.
label
A character string.
key
A character string.
all
A logical constant. If TRUE, drop all indexes from the graph.

Details

Dropping a uniqueness constraint necessarily drops the index as well. It is unnecessary to use dropIndex if dropConstraint has already been applied to the same (label, key) pair.

See Also

addIndex, getIndex

Examples

Run this code
## Not run: 
# graph = startGraph("http://localhost:7474/db/data/")
# clear(graph)
# 
# addIndex(graph, "Person", "status")
# getIndex(graph)
# 
# dropIndex(graph, "Person", "status")
# getIndex(graph)
# ## End(Not run)

Run the code above in your browser using DataLab