【问题标题】:MongoDB Compass app does not have $search AggregationMongoDB Compass 应用程序没有 $search 聚合
【发布时间】:2021-09-13 01:09:46
【问题描述】:

我在 Mac 中使用 MongoDB Compass 应用程序,它连接到我的本地主机数据库。我无法在所有可用聚合列表中看到 $search 聚合。不确定这是否与 MongoDB 版本有关。

我正在使用的数据库信息:

HOST: localhost:27017
CLUSTER: Standalone
EDITION: MongoDB 4.4.3 Community

Missing $search from list of all available Aggregations

【问题讨论】:

    标签: mongodb aggregation-framework mongodb-compass


    【解决方案1】:

    $search 聚合管道阶段对Atlas 集合中的一个或多个字段执行全文搜索。

    您只能在find 阶段使用$search

    查看此示例:$search

    【讨论】:

    • 感谢您抽出宝贵时间@YuTing。但是,我想知道 MongoDB Compass 应用程序中的聚合列表中缺少 $search 阶段的原因。
    猜你喜欢
    • 1970-01-01
    • 2018-11-18
    • 2021-07-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多