spark-solr
spark-solr copied to clipboard
How to full-import to solr and overwrite
i want to import solr use full-import because my fileds have same name(Productname) and
automatically generated uniquekey(id) like -> 1(id) apple(Productname) 15(ProductCount)
i try to use
.mode(org.apache.spark.sql.SaveMode.Overwrite)
to overwrite previous data ,but solr generate same data just different in id,now i have duplicate data....
how to import like full-import to overwrite previous data ?
thanks for you help
spark-solr behaves the same irrespective of the Overwrite mode right now. Make sure your id's match to overwrite the data