Builds a SOLR Query from a JS object.