a node-solr-client smart constructor