如果我们删除datastax cassandra中的一行,DataStax将删除solr中的所有字段,但保留其ID(uniqueKey)字段。这个uniqueKey字段在solr搜索中被索引,没有所有其他字段的数据。如何在solr中删除这个uniqueKey值?
示例搜索结果(第一个文档只有uniqueKey值,但此记录在数据库中删除):
{
"groupValue":"b00naxzgps",
"doclist":{"numFound":1,"start":0,"docs":[
{
"_uniqueKey":"[\"B00NAXZGPS\",\"1439337600000\",\"5790.0\",\"Amazon\"]"}]
}},
{
"groupValue":"acce3f2aybn5yyht",
"doclist":{"numFound":9,"start":0,"docs":[
{
"_uniqueKey":"[\"ACCE3F2AYBN5YYHT\",\"1439942400000\",\"349.0\",\"Flipkart\"]",
"product_id":"ACCE3F2AYBN5YYHT",
"location":"null",
"product_name":"Airnet USB for ZTE Blade G2 Car Charger",
"state":"null",
"address1":"null",
"address2":"null",
"updated_time":"2015-08-19T17:47:28.876Z",
"product_group":"mobile_accessories",
"city":"null",
"updated_date":"2015-08-19T00:00:00Z",
"longitude":0.0,
"user_id":"null",
"imageurl":"null",
"currency_code":"INR",
"mrp_price":699.0}]
}},