Configuring the code that checks if a hubId exists so that it does not check solr  for hubId if we are dealing with indexItems.