【发布时间】:2014-12-17 17:28:15
【问题描述】:
我需要在字符串类型的 mongo 集合中索引一列,但具有巨大的价值。我倾向于使用Hashed Index,但不知道如何标记索引以在 Spring Data - Mongo API 中使用哈希。
我当前创建索引的代码:
mongo.indexOps('mycollection').ensureIndex(new Index().on('names', Sort.Direction.ASC))
【问题讨论】:
标签: mongodb spring-data-mongodb