This is a workaround for existing index (not fully reindexed) since intro of schema with docvalues
to prevent solr exception causing recrawljob to fail with
org.apache.solr.core.SolrCore java.lang.IllegalStateException: unexpected docvalues type NONE for field 'load_date_dt' (expected=NUMERIC). Use UninvertingReader or index with docvalues.
@ -57,6 +57,7 @@ public class RecrawlBusyThread extends AbstractBusyThread {
finalSwitchboardsb;
privatefinalSet<DigestURL>urlstack;// buffer of urls to recrawl
publiclongurlsfound=0;
privateStringsolrSortBy;
publicRecrawlBusyThread(Switchboardxsb){
super(3000,1000);// set lower limits of cycle delay
@ -66,6 +67,9 @@ public class RecrawlBusyThread extends AbstractBusyThread {
this.sb=xsb;
urlstack=newHashSet<DigestURL>();
// workaround to prevent solr exception on existing index (not fully reindexed) since intro of schema with docvalues
// org.apache.solr.core.SolrCore java.lang.IllegalStateException: unexpected docvalues type NONE for field 'load_date_dt' (expected=NUMERIC). Use UninvertingReader or index with docvalues.