use of org.apache.metron.indexing.dao.IndexDao in project metron by apache.
the class SolrSearchIntegrationTest method createDao.
protected static IndexDao createDao() {
AccessConfig config = new AccessConfig();
config.setMaxSearchResults(100);
config.setMaxSearchGroups(100);
config.setGlobalConfigSupplier(() -> new HashMap<String, Object>() {
{
put(SOLR_ZOOKEEPER, solrComponent.getZookeeperUrl());
}
});
config.setIndexSupplier(sensorType -> sensorType);
IndexDao dao = new SolrDao();
dao.init(config);
return dao;
}
Aggregations