Considering RethinkDB's secondary indexes can be defined around pretty complex ReQL expressions [1] you could already get some of it already.
[1] http://rethinkdb.com/docs/pragmatic-faq/#how-do-i-take-advan...
[1] http://rethinkdb.com/docs/pragmatic-faq/#how-do-i-take-advan...
I think that's correct.