I recently started to use Mongodb with rails so I don't know if is possible to do a NoSQL query like this:
Model.where("lower(first_name || ' ' || last_name) LIKE ?", "%#{search.downcase}%")
I want to type a search with first name and last name in the same string, for example: "John Smith"
Is this possible with Mongoid querying?