https://github.com/lbdremy/solr-node-client/issues/62
Better implementation.