Hi, I've got an app here that posts data to Solr using Solrj... I'm trying to update all our apps dependencies, and now I've reached Solrj Last kown working version is 5.5.0, anything after that dies at compile time with:
cannot find symbol [javac] import org.apache.solr.common.util.DateUtil; [javac] ^ [javac] symbol: class DateUtil [javac] location: package org.apache.solr.common.util AND: error: cannot find symbol [javac] val2 = DateUtil.getThreadLocalDateFormat().format(val); [javac] ^ [javac] symbol: variable DateUtil [javac] location: class SolrIndexWriter Doing some research, it tells me that at some point DateUtil was deprecated from the solr ... and it says something like to use Instant.format() instead, if someone needs to format the date for some reason.. so I comment out.. import org.apache.solr.common.util.DateUtil; AND this is being imported... import java.util.Date; and I'm only left with the second error..... So, the question is what does this code have to look like for a current version of Solrj?: // normalise the string representation for a Date Object val2 = val; if (val instanceof Date) { val2 = DateUtil.getThreadLocalDateFormat().format(val); } If someone would be so kind to give me a hand here it would be greatly apreciated.. thnx