Skip to content

Add Search to Aggregate pipeline #7238

Closed
@BRETT71

Description

@BRETT71

New Feature / Enhancement Checklist

Current Limitation

Can not use the $search operator in aggregate pipelines

Feature / Enhancement Description

MongoDB Atlas has a search index for collections. You can find out more here. The way you use your search index is through aggregate. Right now if you add search to your pipeline parse throws an error.

You have to have mongo 4.2 and above and have MongoDB hosted on atlas.

Example Use Case

  1. Searching people
  2. Searching posts
    etc. (anything that you need to search)

Alternatives / Workarounds

Right now you have to use parse fulltext search which just uses a text index. You do not get fuzzy search and autocomplete

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions