Validation for solr query