fixed bug in primal solr queries formulation