是否可以在 MarkLogic 中创建类似于 MongoDb 的集合

Is it possible to create collections in MarkLogic similar to MongoDb

我是这个 MarkLogic DB 的新手,直到现在我们都在使用 XQuery 对 XML 文档进行 crud 操作。

现在需求发生了一些变化,需要将 json 数据与文档(可能是 xml/json)一起存储到不同的集合中,并使用 Java [=24] 执行 crud 操作=] + spring 开机

以下 3 个示例集合包含 json 类似于 mongo db

的数据
Employee Collection  
-------------------
empid,
`emp id json`

Address Collecion
-----------------------
empid,
`address details json`

Documents collection
-----------------
empid , 
`document (xml/json  )`

这在 MarkLogic DB 中可行吗?。如果是,请帮助我找到解决方法。

并且需要搜索 api 以使用 Marklogic + Spring boot

在上述 3 个集合中进行过滤

是的。参见:https://docs.marklogic.com/guide/search-dev/collections (由 google 找到 "MarkLogic Collections")