SearchSource {rcloud.solr} | R Documentation |
An R6 class to make requests to individual src_params sources.
src_params |
A list of solr details. Must at least contain
|
The name of the source. This is "main_source"
for the default, otherwise it's pulled from the gist-source.
URL of the solr instance, including the path to the correct core. e.g. http://solr:8983/solr/rcloudnotebooks
.
For authenticated instances, the user name.
For authenticated instances, the password.
$new(src_name, src_params)
starts a new search source
$search(...)
search this source. Parameters are all based on
rcloud.search
.
$get_source
get the source
element
$get_solr_url
get the solr.url
element
$parse_result(solr.res, pagesize, start)
parse the result of a search. This function can be swapped out for different versions.
SS <-
SearchSource$new(
src_params = list(source = "main_source",
solr.url = "http://solr:8983/solr/rcloudnotebooks")
)
SS$get_source()