无法生成与卡桑德拉datastax Solr模式
问题描述:
我使用datastax企业5.0.2,我想使用Solr的无法生成与卡桑德拉datastax Solr模式
我试试这个:
dsetool create_core keyspace.table generateResources = 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.
而且当我尝试用宽容真的,我不能让它工作,要么是因为我的主键,一个字节的字段名为“类型”
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个字段这将是很难手动
答
生成它取出
reindix =真。
在第一次创作只是做这样的:
dsetool create_core keyspace.table generateResources =真
以后你可以重新索引
你得到回应,如果你使用'infer_solr_schema'? https://docs.datastax.com/en/datastax_enterprise/5.0/datastax_enterprise/tools/dsetool.html#dsetool__inferSolrschema – markc
不,即使在手动映射和/或在宽松模式下也不支持字节类型 – Bouki
如果您可以生成重复没有这种字节类型的虚拟表然后从那里创建模式,那么你可以用它来为原始表。你可能会设置'stored = false'和'indexed = false',并且仍然在模式 – markc