|
New indexes need to inherit the default collation from the time-series collection. This is consistent with behavior for regular collections.
This is incorrect behavior:
> db.createCollection('ts', {timeseries: {timeField: 'time', metaField: 'meta'}, collation: {locale: 'en', strength: 1, numericOrdering: true}})
|
{ "ok" : 1 }
|
> db.ts.createIndex({meta: 1})
|
{
|
"numIndexesBefore" : 0,
|
"numIndexesAfter" : 1,
|
"createdCollectionAutomatically" : false,
|
"ok" : 1
|
}
|
> db.runCommand({listIndexes: "ts"})
|
{
|
"cursor" : {
|
"id" : NumberLong(0),
|
"ns" : "test.ts",
|
"firstBatch" : [
|
{
|
"v" : 2,
|
"key" : {
|
"meta" : 1
|
},
|
"name" : "meta_1"
|
}
|
]
|
},
|
"ok" : 1
|
}
|
Notice that the new index does not have a collation.
|