SearchSource: Search Source

Description Arguments Members Public Methods Private Methods Examples

Description

An R6 class to make requests to individual src_params sources.

Arguments

src_params

A list of solr details. Must at least contain solr.url, and the source name, source.

Members

source

The name of the source. This is "main_source" for the default, otherwise it's pulled from the gist-source.

solr.url

URL of the solr instance, including the path to the correct core. e.g. http://solr:8983/solr/rcloudnotebooks.

solr.auth.user

For authenticated instances, the user name.

solr.auth.pwd

For authenticated instances, the password.

Public Methods

$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

Private Methods

$parse_result(solr.res, pagesize, start) parse the result of a search. This function can be swapped out for different versions.

Examples

1
2
3
4
5
6
7
SS <-
SearchSource$new(
  src_params = list(source =  "main_source",
                    solr.url = "http://solr:8983/solr/rcloudnotebooks")
)

SS$get_source()

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