2016-08-16 3 views
0

私は、次のカサンドラテーブルのためのSolrのコアを作成しようとしています:は「寛大:true」を指定して、リソースの生成オプションでサポートされていない列を無視する

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のコアを作成するには、次のコマンドを使用しています:

org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Type org.apache.cassandra.db.marshal.TimeType is not supported with automatic Solr schema generation. Specify 'lenient: true' in your resource generation options to ignore unsupported columns.

dsetool create_core graph.table1 generateResources=true

しかし、それはそう時間フィールドは、それが次のエラーを生成しているようにSolrによってサポートされていません。

サポートされていない列(私の場合はcrtime_t)を無視しても問題ありませんが、リソース生成オプションでlenientをtrueに指定する方法はありますか?そしてそれは寛大なものは何を意味するのですか:本当ですか?試しました:

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

しかし、うまくいきませんでした。

答えて

1

'lenient:true'を含む.yamlファイルを追加し、オプションcoreOptions = 'path.to.yaml.file'を使用して生成します。

関連する問題