LastfmArchive.Load.check_solr_schema

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

Specs

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

Check a Solr core/collection to ensure it has the required Lastfm data fields.

The check currently inspects Solr schema for a list of Lastfm fields and returns error if one or more of the fields are missing. See LastfmArchive.Transform.transform/3 for the list of fields.

Example

  LastfmArchive.Load.check_solr_schema("http://solr_url...")
  LastfmArchive.Load.check_solr_schema(:lastfm_archive) # ping a configured endpoint

See ping_solr/1 for more details on URL configuration.