```
def self.search(querys = {})
  if querys[:q].present?
  end
  ..... if querys[:xxx].present?
end  
Petition.search :q => params[:q], :xxx => params[:xxxx]
```