adapt to solr and hbase