Go-Solr
Go-Solr copied to clipboard
You probably shouldn't use this. A solr client badly written in Go. It's really old, and was the first Go i ever wrote. keeping it here for history's sake, and to giggle at
I had some issues regarding http client connections and therefore changed the code that is using the default http client
Is it possible to see the debug info for the raw queries sent to Solr?
I get this err in go 1.7 The cause of this error is sort of spaces eg: push_time ASC q := solr.Query{ Params: solr.URLParamMap{ "q": q_str, }, Rows: 10, Sort:...
The mehtod SolrSelectingString or CustomSelect has to replace the space with encoded url space %20
without this check I was getting error in case empty results were returned
The line: `s, err := solr.Init("localhost", 8983)` Should be: `s, err := solr.Init("localhost", 8983, "resource_name")`
The context "/solr/" and "http://" look like they are hardcoded into the URL building functions. Would it be possible to replace these with options?