LastfmArchive.Load.ping_solr

You're seeing just the function ping_solr, go back to LastfmArchive.Load module for more information.

Specs

ping_solr(binary() | atom()) :: {:ok, map()} | {:error, Hui.Error.t()}

Ping a Solr core/collection endpoint to check if it is running.

The endpoint can either be a URL string or an atom referring to an endpoint in configuration. The library uses Hui to interact with Solr, an endpoint can be specified as below:

Example

  LastfmArchive.Load.ping_solr("http://solr_url...")
  LastfmArchive.Load.ping_solr(:lastfm_archive) # check a configured endpoint

:lastfm_archive refers to the following Solr update endpoint in configuration:

  config :hui, :lastfm_archive,
    url: "http://solr_url..",
    handler: "update",
    headers: [{"Content-type", "application/json"}]

See Hui.URL module for more details.