I am very new to documentDB, I have created some indexes on our ELASTIC DocumentDB and I want to run the indexStats on a collection. Looks like they're not supported as I get this error:
我对documentDB非常陌生,我在我们的ELASTIC DocumentDB上创建了一些索引,我想在集合上运行indexStats。看起来他们不支持,因为我得到这个错误:
"message" : "Aggregation stage not supported: '$indexStats'"
“Message”:“不支持聚合阶段:‘$indexStats’”
It works fine with not Elastic DocumentDB. I also want to understand in the absence of indexStats, what are the other ways to make sure right indexes are getting used on the elastic DocumentDB
它可以很好地与非弹性文档数据库配合使用。我还想了解在没有indexStats的情况下,还有什么其他方法可以确保在弹性DocumentDB上使用正确的索引
更多回答
优秀答案推荐
According to this AWS documentation, DocumentDB Elastic clusters do in fact support the $indexStats
stage operator: Supported MongoDB APIs, Operations, and Data Types (see "Stage Operators" section).
根据该AWS文档,DocumentDB弹性集群实际上确实支持$indexStats阶段运算符:受支持的MongoDB API、操作和数据类型(请参阅“阶段运算符”部分)。
更多回答
我是一名优秀的程序员,十分优秀!