在 3.2 版更改: MongoDB Enterprise 包括对 Arabic, Farsi (具体为:Dari 及 Iranian Persian 方言), Urdu, 简体中文以及繁体中文的支持。
具体介绍请查看下面链接
http://www.mongoing.com/docs/reference/text-search-languages.html
具体介绍请查看下面链接
http://www.mongoing.com/docs/reference/text-search-languages.html
2018-10-07
在 3.2 版更改: MongoDB Enterprise 包括对 Arabic, Farsi (具体为:Dari 及 Iranian Persian 方言), Urdu, 简体中文以及繁体中文的支持。
具体介绍请查看下面链接
http://www.mongoing.com/docs/reference/text-search-languages.html
具体介绍请查看下面链接
http://www.mongoing.com/docs/reference/text-search-languages.html
2018-10-07
MongoDB 的V4.0版本,支持$minDistance
> db.location.find({w:{$near:[1,1],$maxDistance:10,$minDistance:3}})
> db.location.find({w:{$near:[1,1],$maxDistance:10,$minDistance:2}})
{ "_id" : ObjectId("5baf24bbd1466f79b2df1575"), "w" : [ 3, 2 ] }
> db.location.find({w:{$near:[1,1],$maxDistance:10,$minDistance:3}})
> db.location.find({w:{$near:[1,1],$maxDistance:10,$minDistance:2}})
{ "_id" : ObjectId("5baf24bbd1466f79b2df1575"), "w" : [ 3, 2 ] }
2018-09-29