|
|
|
@ -17,7 +17,7 @@ import java.io.IOException;
|
|
|
|
|
*/
|
|
|
|
|
public abstract class ElasticRepository<T extends ElasticEntity,C extends Criteria> implements Repository<T,C> {
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(ElasticRepository.class);
|
|
|
|
|
private final ObjectMapper mapper = new ObjectMapper();
|
|
|
|
|
private final ObjectMapper mapper;
|
|
|
|
|
private RestHighLevelClient client;
|
|
|
|
|
|
|
|
|
|
public RestHighLevelClient getClient() {
|
|
|
|
@ -33,6 +33,7 @@ public abstract class ElasticRepository<T extends ElasticEntity,C extends Criter
|
|
|
|
|
logger.warn("Unable to connect to Elastic Services");
|
|
|
|
|
this.client = null;
|
|
|
|
|
}
|
|
|
|
|
this.mapper = new ObjectMapper();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public <T> T transformFromString(String value, Class<T> tClass) {
|
|
|
|
|