Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit 8da271a

Browse files
committed
fix #121 fix to internal obj_POST fxn that had a typo - bump version
1 parent 44bcb5b commit 8da271a

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description: Provides a set of functions for querying and parsing data
55
remote), including search, 'faceting', 'highlighting', 'stats', and
66
'more like this'. In addition, some functionality is included for
77
creating, deleting, and updating documents in a 'Solr' 'database'.
8-
Version: 1.1.0.9100
8+
Version: 1.1.1.9100
99
Authors@R: c(
1010
person("Scott", "Chamberlain", role = c("aut", "cre"),
1111
email = "myrmecocystus@gmail.com",

R/delete.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232
#' ## Many IDs
3333
#' cli$delete_by_id(ids = c(3, 4), "gettingstarted")
3434
#'
35-
#' # Delete by query
36-
#' cli$delete_by_query(query = "title:animals", "gettingstarted")
35+
#' # Delete by query
36+
#' cli$search("gettingstarted", params=list(q="*:*")) # apple is there
37+
#' cli$delete_by_query(query = 'id:apple', "gettingstarted") # delete it
38+
#' cli$search("gettingstarted", params=list(q='id:apple')) # apple is now gone
3739
#' }
3840

3941
#' @export

R/zzz.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ obj_POST <- function(base, path, body, args, proxy, ...) {
120120
headers = list(`Content-Type` = "application/json"),
121121
opts = list(...)
122122
)
123-
if (inherits(proxy, "proxy")) httpcli$proxies <- proxy
123+
if (inherits(proxy, "proxy")) cli$proxies <- proxy
124124
tt <- cli$post(path, query = args, body = body, encode = "form", ...)
125125
get_response(tt)
126126
}

man/delete.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)