Added support for conditions in mongoid and algolia