dropIndex: Indexes

Description Usage Arguments Details See Also Examples

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

nicolewhite/RNeo4j documentation built on May 23, 2019, 5:09 p.m.