0

我已将 UUID 列(_id 是 mongo 中的 UUID)映射到字符串,并在 atlas 搜索索引映射中将 anylyzer 设置为这样的关键字

          "_id": {
            "analyzer": "lucene.keyword",
            "type": "string"
          },

当我查询 _id 时,这不起作用。

"text": {
  "path": "_id",
  "query": "568ae8be-168d-4675-a442-fe93836e1b50"
}

所以不确定应该如何在 altas 搜索中设置和搜索 UUID 映射

4