# NOT RUN {
(cli <- SolrClient$new())
# add some documents first
ss <- list(list(id = 1, price = 100), list(id = 2, price = 500))
cli$add(ss, name = "gettingstarted")
# Now, delete them
# Delete by ID
cli$delete_by_id(ids = 1, "gettingstarted")
## Many IDs
cli$delete_by_id(ids = c(3, 4), "gettingstarted")
# Delete by query
cli$delete_by_query(query = "manu:bank", "gettingstarted")
# }
Run the code above in your browser using DataLab