fixing query to get all objects from solr