MongoDB 3.2 introduced partial indexes - you can define a filter as part of the index to which the index will be applied. In ruby's mongoid I can define a unique or normal index.
Since the partial index contains a filter expression on which the index should work - how do you define it on a model ?