gpt4 book ai didi

node.js - MarkLogic - node.js - 如何要求 cts 进行搜索

转载 作者:太空宇宙 更新时间:2023-11-03 23:07:27 26 4
gpt4 key购买 nike

我认为 Node 数据库连接工作正常:

var marklogic = require('marklogic');
var db = marklogic.createDatabaseClient({ ...

现在我想做 cts.search我如何需要 cts?

最佳答案

你不知道。 cts 函数用于在数据库中运行查询。通过使用 Node.js 客户端 API,您将使用查询生成器。 feature introduction中有一个例子,更多详细信息请参见 Getting Started tutorialNode.js Application Developer's Guide

您可能将 Node.js 客户端 API 与 Server-side JavaScript 混淆了。 。前者用于让中间层 Node.js 代码与 MarkLogic 交互。后者用于编写在数据库中运行的 REST API 扩展或转换(并且可以从 Node API 调用)。

关于node.js - MarkLogic - node.js - 如何要求 cts 进行搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30355782/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com