func (c *CreateCoreParams) Config(config string) *CreateCoreParams {
	c.config = config
	return c
}
Config is the name of the config file (i.e., solrconfig.xml) relative to instanceDir.
package solr
import (
	"net/url"
)
type CoreParams struct {
	core string
	deleteIndex,
	deleteDataDir,
	deleteInstanceDir bool
}
func NewCoreParams(core string) *CoreParams {
	return &CoreParams{core: core}
}
func (c *CoreParams) BuildParams() string {
	vals := &url.Values{}
	if c.core != "" {
		vals.Add("core", c.core)
	}
	if c.deleteIndex {
		vals.Add("deleteIndex", "true")
	}
	if c.deleteDataDir {
		vals.Add("deleteDataDir", "true")
	}
	if c.deleteInstanceDir {
		vals.Add("deleteInstanceDir", "true")
	}
	return vals.Encode()
}
func (c *CoreParams) DeleteIndex(deleteIndex bool) *CoreParams {
	c.deleteIndex = deleteIndex
	return c
}
func (c *CoreParams) DeleteDataDir(deleteDataDir bool) *CoreParams {
	c.deleteDataDir = deleteDataDir
	return c
}
func (c *CoreParams) DeleteInstanceDir(deleteInstanceDir bool) *CoreParams {
	c.deleteInstanceDir = deleteInstanceDir
	return c
}
type CreateCoreParams struct {
	name        string
	instanceDir string
	config      string
	dataDir     string
	configSet   string
	schema      string
}
func NewCreateCoreParams(name string) *CreateCoreParams {
	return &CreateCoreParams{name: name}
}
func (c *CreateCoreParams) InstanceDir(instanceDir string) *CreateCoreParams {
	c.instanceDir = instanceDir
	return c
}