db.collection.aggregate([
{
"$match":{
"country":"France"
}
}],{collation:{locale:"en",strength: 2}}
)
o1 := bson.M{
"$match": bson.M{
"country": country,
},
}
collator := mgo.Collation{
Locale: "en",
Strength: 2,
}
operations := []bson.M{o1}
pipe := c.Pipe(operations)
--
You received this message because you are subscribed to the Google Groups "mgo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mgo-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mgo-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There I added hint to the count query