Skip to content

Aggregation with $text match() is not possible on documents with discriminator map set #2455

@mposchl

Description

@mposchl

I wonder why it is not possible to match text index in documents, that have discriminator map set. ODM always prepends this discriminator map (via the filters) to the query and when you add a match stage in the pipeline, it always fails within the getAggregation() call as the $text stage has to be the first pipeline. Is this by design, is there some workaround or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestGood issue for participating in Hacktoberfest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions