我正在 mongoDB 服务器版本 2.6.3 中尝试 mongoDB 文本搜索。当我使用以下查询执行文本搜索时
db.collection.find({"$text" : {"$search" : "a@b"}})
Run Code Online (Sandbox Code Playgroud)
我得到的结果文件包含 a 或 b,这意味着我得到的结果是
db.collection.find({"$text" : {"$search" : "a b"}})
Run Code Online (Sandbox Code Playgroud)
我猜 mongo 文本解析器正在考虑将'@'字符作为分隔符并将其替换为空格。有没有办法可以指定'@'不应将字符视为分隔符?