use of org.graylog.storage.elasticsearch6.IndexingHelper in project graylog2-server by Graylog2.
the class IndicesIT method indicesAdapter.
protected IndicesAdapter indicesAdapter() {
if (elasticsearch().searchServer().equals(SearchServer.ES6)) {
return new IndicesAdapterES6(jestClient(elasticsearch()), new ObjectMapperProvider().get(), new IndexingHelper());
} else {
final ObjectMapper objectMapper = new ObjectMapperProvider().get();
final ElasticsearchClient client = elasticsearchClient();
return new IndicesAdapterES7(client, new StatsApi(objectMapper, client), new CatApi(objectMapper, client), new ClusterStateApi(objectMapper, client));
}
}
Aggregations