DSE 6 通过 http 创建 solr cores

DSE 6 create solr cores through http

我正在尝试使用以下 http 请求来创建 solr 核心:

http://localhost:8983/solr/admin/cores?action=CREATE&name=service_name.resource&generateResources=false

我得到的回复是

[create] action is not supported!

我使用的是直接从站点获得的 dse 6 版本。 5.0 和 5.1 工作正常,但是 6 returns 上面的错误,有什么想法吗?

5.x 版本中支持的许多 HTTP API 在 DSE 6 中被删除,包括核心管理。

您需要使用 CQL syntax(推荐)或 dsetool(较旧,不太推荐)来操作 DSE 搜索核心。

P.S。根据我的经验,使用 CQL 更容易,并且不需要访问 Solr UI 或命令行。