What version are you using? (Morphia/Driver/MongoDB)
Please include a stack trace below:
i have a "student" table in mongodb
i have "Student" class in java
i aim is to ignore the white spaces when searching string in monodb and
ignoring case insensitivity
I created query like this
String name="satheessh"
Query<Student> query = creatQuery();
Pattern pattern=Pattern.compile("^"+name.trim()+"$",Pattern.CASE_INSENSITIVE);
query.criteria(Student.name).equal(pattern);
Student s=null;
s=findOne();
the above query is working for only caseinsensitiv with exact match I need to
fix for ignoring the white spaces also
note: Pattern.COMMENTS not working .
how do i do
thanks in advance
Original issue reported on code.google.com by satheesh...@gmail.com on 1 Feb 2012 at 3:03
Original issue reported on code.google.com by
satheesh...@gmail.com
on 1 Feb 2012 at 3:03