fixing queries and adding logging (do solr booleans correctly)!