【问题标题】:Specify 'lenient: true' in your resource generation options to ignore unsupported columns在资源生成选项中指定 'lenient: true' 以忽略不支持的列
【发布时间】:2016-12-22 16:47:24
【问题描述】:

我正在尝试为以下 cassandra 表创建 solr 核心:

CREATE TABLE IF NOT EXISTS table1(
    id      UUID,   
    nm          TEXT,
    crtime_t    TIME,       --creation time in nanoseconds
    issys       BOOLEAN,
    conttyp     TEXT,

    PRIMARY KEY (id)
);

我正在使用以下命令来创建 solr 核心:

dsetool create_core graph.table1 generateResources=true

但似乎 solr 不支持时间字段,因为它会产生以下错误:

org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: 不支持类型 org.apache.cassandra.db.marshal.TimeType 自动 Solr 模式生成。在您的 资源生成选项以忽略不受支持的列。

我可以忽略不支持的列(在我的例子中:crtime_t),但是我应该如何在资源生成选项中将 lenient 指定为 true? lenient 是什么意思:真的?我试过了:

dsetool create_core graph.table1 generateResources=true & lenient=true

但是没有用。

【问题讨论】:

    标签: solr cassandra


    【解决方案1】:

    添加一个包含 'lenient: true' 的 .yaml 文件,然后使用选项 coreOptions='path.to.yaml.file' 生成它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-30
      • 1970-01-01
      • 2013-01-31
      • 1970-01-01
      • 2020-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多