我有一个具有以下结构的文档集合
uid, name
带索引
db.Collection.createIndex({name: "text"})
它包含以下数据
1, iphone
2, iphóne
3, iphonë
4, iphónë
当我进行文本搜索时,iphone
我只得到两条记录,这是出乎意料的
actual output
--------------
1, iphone
2, iphóne
如果我搜索iphonë
db.Collection.find( { $text: { $search: "iphonë"} } );
I am getting
---------------------
3, iphonë
4, iphónë
但实际上我期待以下输出
db.Collection.find( { $text: { $search: "iphone"} } );
db.Collection.find( { $text: { $search: "iphónë"} } );
Expected output
------------------
1, iphone
2, iphóne
3, iphonë
4, iphónë
我在这里错过了什么吗?如何通过搜索iphone
or获得超出预期的输出iphónë
?