我是Cassandra的新人。我正在尝试使用Solr和DSE进行搜索功能。我正在尝试在我的桌子上创建solr core,因为我正在使用下面的命令。
dsetool create_core tradebees_dev.yf_product_books generateResources=true
但我收到以下错误消息:
You requested the core to be created with reindex=false. Preexisting data will not be searchable via DSE Search until you reindex.
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Type org.apache.cassandra.db.marshal.SimpleDateType is not supported with automatic Solr schema generation. Specify 'lenient: true' in your resource generation options to ignore unsupported columns.
at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:665)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:303)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:294)
at com.datastax.bdp.tools.SearchDseToolCommands.createOrReloadCore(SearchDseToolCommands.java:1117)
at com.datastax.bdp.tools.SearchDseToolCommands.access$300(SearchDseToolCommands.java:88)
at com.datastax.bdp.tools.SearchDseToolCommands$CreateCore.execute(SearchDseToolCommands.java:390)
at com.datastax.bdp.tools.DseTool.run(DseTool.java:274)
at com.datastax.bdp.tools.DseTool.run(DseTool.java:203)
at com.datastax.bdp.tools.DseTool.main(DseTool.java:309)
在此之后,我尝试了很多选项,但却无法创建核心。
答案 0 :(得分:0)
您的CQL类型date
字段会显示错误消息,因为自动资源生成尚不支持该CQL字段类型。
您可以将它们更改为timestamp
,直到修复程序发布为止。