errorMessages:架构不可编辑

时间:2017-12-12 04:28:32

标签: datastax datastax-enterprise

我在Linux平台上使用DataStax Enterprise 5.1.5并在Cassandra DB上创建了一个测试模式。创建了与Solr集成的搜索索引,现在尝试使用Solr Rest API编辑Solr架构文件(schema.xml):

编辑架构文件时,我面临以下错误

  

errorMessages:架构不可编辑

需要一些建议。在搜索时找到了一些线索,但还没有帮助。 谢谢, Divya Garg

2 个答案:

答案 0 :(得分:1)

您需要使用dsetool在核心/架构中进行所有更改,因为DSE管理所有核心。

您需要先执行以下两个步骤:

  1. 使用dsetool get_core_config keyspace.table > solrconfig.xml
  2. 获取核心配置
  3. 使用dsetool get_core_schema keyspace.table > schema.xml
  4. 获取架构

    然后更改任何这些文件&重建核心:

    1. 使用dsetool unload_core keyspace.table
    2. 卸载核心
    3. 使用dsetool create_core keyspace.table schema=schema.xml solrconfig=solrconfig.xml创建核心(如果要从表中加载现有数据,请添加reindex=true

答案 1 :(得分:0)

从DSE 5.1开始,您还可以直接从CQL更改和重新加载搜索索引的架构。 (见https://docs.datastax.com/en/dse/5.1/dse-dev/datastax_enterprise/search/indexMgmt.html