Skip to content

Support partial filter expressions for indexing introduced in MongoDB 3.2 [DATAMONGO-1467] #2384

Closed
@spring-projects-issues

Description

@spring-projects-issues

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)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions