func NewSchema(solrUrl, core string) (*Schema, error) {
	u, err := url.ParseRequestURI(strings.TrimRight(solrUrl, "/"))
	if err != nil {
		return nil, err
	}
	return &Schema{url: u, core: core}, nil
}
NewSchema will parse solrUrl and return a schema object, solrUrl must be a absolute url or path
package solr
import (
	"fmt"
	"net/url"
	"strings"
)
type Schema struct {
	url      *url.URL
	core     string
	username string
	password string
}