Big Data Guy
Big Data Guy

Reputation: 238

How to set up Solr configuration with DSE

I am new in Cassandra. I am trying to use Solr with DSE for search function. I am trying to create solr core on my table for that I am using below command.

dsetool create_core tradebees_dev.yf_product_books generateResources=true

But I am getting below error message:

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)

After this I was trying so many option but not able to create core.

Upvotes: 0

Views: 616

Answers (1)

Bereng
Bereng

Reputation: 734

Your fields of CQL type date will give you that error message as auto resource generation does not support that CQL field type yet.

You can change them to timestamp for them to work until a fix is released.

Upvotes: 0

Related Questions