【发布时间】:2016-12-06 03:16:14
【问题描述】:
我是 Cassandra 的新手。我正在尝试将 Solr 与 DSE 一起用于搜索功能。我正在尝试在我的桌子上创建 solr 核心,因为我正在使用以下命令。
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)
在此之后,我尝试了很多选项,但无法创建核心。
【问题讨论】:
-
您使用的是什么 DSE 版本以及该字段是什么 CQL 类型?如果您可以粘贴 tradebees_dev.yf_product_books 表定义,那将是很好的信息。
-
@Bereng DSE 版本 :- 5.0.1 OpsCenter :- 6.0.1 表定义 ::- CREATE TABLE tradebees_dev.yf_product_books ( id uuid PRIMARY KEY, abstract text, author text, category_code text, cid_code text , clickcount int, combo_book_id int, created_at timestamp, currency_code text, dimensions text, edition text, editor text, shipping_id int, generaleditor text,
-
illustrator 文本、图像路径文本、inquirycount int、is_copyright 文本、is_orderallowed 文本、is_presale 文本、is_showlink 文本、is_showquantity 文本、isbn 文本、language_code 文本、longtitle 文本、market_code 文本、marketinglink 文本、marketplace_code 文本、 medium_code 文本,
-
medium_code text,on_sell int,ordercount int,otherfield text,otherimg text,pages int,presale_date date,presale_price decimal,price decimal,pricetype_code text,pubcountry_code text,pubdate text,publisher_code text,quantity int, quantity_unit_code 文本,quantity_unit_size int,sales_status text,samplelink text,series text,sku text,status_code text,status_end_date date,status_related_price decimal,status_start_date date,thumb text,title text,translator text,unit text,updated_at timestamp,user_id int,weight float ,weight_unit_code 文本,word_count 文本)
-
@Bereng 只需检查一下......任何建议的方法来克服这个问题。
标签: solr cassandra datastax-enterprise