使用 MongoDB Search date 字段类型对日期值进行索引。将字段索引为 date 后,您可以使用 范围、附近、在 和 等于 操作符对其进行查询。您还可以运行 分面(Facet) 查询并按索引的 date 字段对结果进行排序。
date
后退
布尔
来年
dateFacet