7

我正在使用 datastax 企业 5.0.2,我想使用 solr

我试试这个:

dsetool create_core keyspace.table generateResources=true reindex=true

但我明白了:

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

当我尝试使用 lenient true 时,我也无法使其工作,因为我的主键有一个名为“type”的字节字段

org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Schema Parsing Failed: Schema contains no indexed field for element 'type' of composite key '(lang,type)

任何线索如何解决这个问题?

我的表有 100 多个字段,很难手动生成

4

1 回答 1

-2

取出

reindix=真。

在第一次创建时,只需这样做:

dsetool create_core keyspace.table generateResources=true

稍后你可以重新索引

于 2017-03-06T13:53:01.647 回答