func (s *Search) Resource(resource string, params *url.Values) (*[]byte, error) {
	if s.conn == nil {
		return nil, fmt.Errorf("No connection found for making request to solr")
	}
	return s.conn.Resource(resource, params)
}
Wrapper for connection.Resource which will add wt=json automatically
One can use this to query to /solr/{CORE}/{RESOURCE} example /solr/collection1/select
This can be useful when you use an search component that is not supported in this package
package solr
import (
	"fmt"
	"net/url"
)
type Search struct {
	query *Query
	conn  *Connection
	Debug string
}
func NewSearch(c *Connection, q *Query) *Search {
	s := new(Search)
	if q != nil {
		s.SetQuery(q)
	}
	if c != nil {
		s.conn = c
	}
	return s
}
func (s *Search) SetQuery(q *Query) {
	s.query = q
}
func (s *Search) QueryParams() *url.Values {
	if s.query == nil {
		s.query = NewQuery()
	}
	if s.Debug != "" {
		s.query.params.Set("debug", s.Debug)
		s.query.params.Set("indent", "true")
	}
	return s.query.params
}
func (s *Search) QueryString() string {
	return s.QueryParams().Encode()
}