我正在使用 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 多个字段,很难手动生成