solr.post: Post Request to Solr

Description Usage Arguments Value

Description

Post Request to Solr

Usage

1
2
3
4
5
.solr.post(data, solr.url = rcloud.support:::getConf("solr.url"),
  solr.auth.user = rcloud.support:::getConf("solr.auth.user"),
  solr.auth.pwd = rcloud.support:::getConf("solr.auth.pwd"), isXML = FALSE,
  isMulti = FALSE, type = rcloud.support:::getConf("solr.post.method"),
  detach = TRUE, query = list(commit = "true"))

Arguments

data

The body of the request.

solr.url

Usually from solr.url config. In testing can be http://solr:8983/solr/rcloudnotebooks

solr.auth.user

Usually from solr.url config. NULL in testing

solr.auth.pwd

Usually from solr.url config. NULL in testing

isXML

Logical. If TRUE the data argument directly becomes the body and content_type is set to "text/xml"

isMulti

Logical. If TRUE it is assumed to be a list of notebooks and will not be wrapped in a list.

type

One of c("async", "sync", "curl") usually drawn from config file.

detach

Logical. For mcparallel. Should updates be detached and forgotten about or not?

query

Named list. Arguments to be added to the query in the POST request to Solr.

Value

The result of the httr::POST (sync). This needs to be unwrapped with a parallel::mccollect with async, and curl just returns NULL.


att/rcloud.solr documentation built on Dec. 24, 2019, 10:37 p.m.