A workaround for solr in certain cases