【发布时间】:2021-01-05 19:13:24
【问题描述】:
我正在使用 MongoDB Atlas Search 在 Collection 中执行搜索,为此我创建了 Atlas Search Index:
{
"mappings": {
"dynamic": false,
"fields": {
"caption": {
"type": "string"
}
}
}
}
这是我的聚合:
[
{
"$search":{
"text":{
"path":"caption",
"query":"Ingocnitáá",
"fuzzy":{
}
},
"highlight":{
"path":"caption"
}
}
}
]
我的收藏中有以下文档:
{caption:"Ct tyu test Ingocnitáá"}
问题:当我搜索Ingocnitaaagreement 返回 0 结果。
我的搜索索引有什么问题吗?我想要一个带有突出显示的指令不敏感搜索。
【问题讨论】:
标签: mongodb mongodb-atlas mongodb-atlas-search