vanng822 / go-solr

Solr client in Go, core admin, add docs, update, delete, search and more
MIT License
69 stars 42 forks source link

Allow queries larger than max url limit #44

Closed ederfmartins closed 6 years ago

ederfmartins commented 6 years ago

Currently the lib uses get requests to send queries to Solr, but URLs have a maximum character limit (currently about 2K). This prevents us to execute larger queries on Solr. To overcome this problems, as Solr also accept requests via POST, we add this possibility to the to the lib. Moreover would be nice if the lib's user had have control over headers sent to Solr. So we also add this possibility in this PR

vanng822 commented 6 years ago

@ederfmartins great work thanks