docs: def ping(host=None, core_name=None):
      '''
      Does a health check on solr, makes sure solr can talk to the indexes.
  
      host : str (None)
          The solr host to query. __opts__['host'] is default.
      core_name : str (None)
          The name of the solr core if using cores. Leave this blank if you are
          not using cores or if you want to check all cores.
  
      Return : dict<str,obj>::
  
          {'success':boolean, 'data':dict, 'errors':list, 'warnings':list}
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' solr.ping music
      '''
      ret = _get_return_dict()
      if _get_none_or_value(core_name) is None and _check_for_cores():
          success = True
          for name in __opts__['solr.cores']:
              resp = _get_admin_info('ping', host=host, core_name=name)
              if resp['success']:
                  data = {name: {'status': resp['data']['status']}}
              else:
                  success = False
                  data = {name: {'status': None}}
              ret = _update_return_dict(ret, success, data, resp['errors'])
          return ret
      else:
          resp = _get_admin_info('ping', host=host, core_name=core_name)
          return resp