我正在尝试在mongo中搜索&字符,但看起来它被忽略了。
这是查询计划
mongos> db.mycoll.explain().find({"$text" : { "$search" : "&" } })
{
"shardName" : "shard-b",
"connectionString" : "shard-b/sam-pc:30100,sam-pc:30101",
"serverInfo" : {
"host" : "sam-pc",
"port" : 30101,
"version" : "3.4.7",
"gitVersion" : "cf38c1b8a0a8dca4a11737581beafef4fe120bcd"
},
"plannerVersion" : 1,
"namespace" : "test.mycoll",
"indexFilterSet" : false,
"parsedQuery" : {
"$text" : {
"$search" : "&",
"$language" : "english",
"$caseSensitive" : false,
"$diacriticSensitive" : false
}
},
"winningPlan" : {
"stage" : "SHARDING_FILTER",
"inputStage" : {
"stage" : "TEXT",
"indexPrefix" : {
},
"indexName" : "custom_text_index",
"parsedTextQuery" : {
"terms" : [ ],
"negatedTerms" : [ ],
"phrases" : [ ],
"negatedPhrases" : [ ]
},
"textIndexVersion" : 3,
"inputStage" : {
"stage" : "TEXT_MATCH",
"inputStage" : {
"stage" : "TEXT_OR"
}
}
}
},
"rejectedPlans" : [ ]
}
]
}
我在mongo文本索引中找不到有关忽略的字符/标点符号的文档。
MongoDB服务器版本:3.4.7语言是英语。
有人可以指出我正确的方向吗?