Closed
Description
Christian Schneider opened DATAMONGO-1467 and commented
MongoDb 3.2 introduced an new index option which allows to index only documents where a given expression matches.
See: https://docs.mongodb.com/manual/core/index-partial/
It would be nice to have the @Indexed
extended to this.
Smth. like:
@Document
class EntityWithPartialFilterIndex {
@Indexed(unique = true, name = "uniqueLastname", partialFilter = "{ lastname : { $exists : true } }")
String lastname;
}
Affects: 1.10 M1 (Ingalls)
Issue Links:
- DATAMONGO-1321 Add Support for partialFilterExpression for index creation
("is duplicated by") - DATAMONGO-1569 Allow partial filter expression usage along with the *...Indexed annotations
Referenced from: pull request #431
Backported to: 1.10 RC1 (Ingalls)