Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MongoDB文本索引与土耳其语的变音不敏感问题_Mongodb_Indexing_Turkish - Fatal编程技术网

MongoDB文本索引与土耳其语的变音不敏感问题

MongoDB文本索引与土耳其语的变音不敏感问题,mongodb,indexing,turkish,Mongodb,Indexing,Turkish,我有一个数据库,由带有土耳其语字符(“ı,ö,ğ,ü,ö,ş,ç”)的文档组成,文本索引为Mongo 3.6。我创建了我的索引来支持土耳其语 db.myCollection.createIndex( { myField: "text" }, { default_language: "turkish" } ). 但是,当我尝试在myField上执行文本搜索时,索引似乎在区分包含变音符号的某些字符(但不是所有字符)和它们的未标记对应字符。例如,它不区分‘ö’和‘o’,但区分‘ı

我有一个数据库,由带有土耳其语字符(“ı,ö,ğ,ü,ö,ş,ç”)的文档组成,文本索引为Mongo 3.6。我创建了我的索引来支持土耳其语

db.myCollection.createIndex(

    { myField: "text" },

    { default_language: "turkish" }
).
但是,当我尝试在myField上执行文本搜索时,索引似乎在区分包含变音符号的某些字符(但不是所有字符)和它们的未标记对应字符。例如,它不区分‘ö’和‘o’,但区分‘ı’和‘i’

我执行文本搜索的目标是在数据库中查找名称,由于文本搜索没有如我所设想的那样正常工作,因此执行以下查询:

db.myCollection.find(

    { $text: { $search: "kanik" } }

)
不返回文件{myField:“Kanık”}


有什么办法可以解决这个问题吗

MongoDB 3.6文本索引似乎不支持变音符号。检查。