We are using grails 2.1.1 and searchable - 0.6.3
We are trying to filter results using query builder
. Our problem is that we cannot put a check on tupples having null in a field. We have gone through lots of documentation but couldn't find any solution.
Is there a way to put a null value check
using query builder in grails searchable plugin
.
using
mustNot(term('columnName',null))
or
mustNot(term('columnName','null'))
does not work.
Try this:
mustNot(gt("columnName", 0))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.