Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/13.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的文本索引创建无效UTF-8_Mongodb - Fatal编程技术网

MongoDB的文本索引创建无效UTF-8

MongoDB的文本索引创建无效UTF-8,mongodb,Mongodb,我发现了这个错误,我发现最多有3篇关于它的帖子,每个帖子都有一个非常模糊的答案,这对我一点帮助都没有 我/需要/修复所有无效数据,而无需重新导入或跳过具有无效utf-8的数据。我找不到任何东西能告诉我怎么做 我想得到答复,谢谢 > db.data.createIndex({username: "text"}) { "ok" : 0, "errmsg" : "text contains invalid UTF-8", "code" : 2875

我发现了这个错误,我发现最多有3篇关于它的帖子,每个帖子都有一个非常模糊的答案,这对我一点帮助都没有

我/需要/修复所有无效数据,而无需重新导入或跳过具有无效utf-8的数据。我找不到任何东西能告诉我怎么做

我想得到答复,谢谢

> db.data.createIndex({username: "text"})
{
        "ok" : 0,
        "errmsg" : "text contains invalid UTF-8",
        "code" : 28755,
        "codeName" : "Location28755"
}
>