How can I write the equivalent of this query for Mongo DB in Java:
db.mydata.find({$where: "this.fields.name.toLowerCase().indexOf('ar') > 0"})
?
The query is used to find all names that include "AR" (martin, mark, etc.).
I am using QueryBuilder
at the moment, but it doesn't support that kind of query format.
Any idea?