DATAES-211 -clean up
This commit is contained in:
@@ -31,7 +31,7 @@ public class Utils {
|
||||
return (NodeClient) nodeBuilder().settings(Settings.builder()
|
||||
.put("http.enabled", "false")
|
||||
.put("path.data", "target/elasticsearchTestData")
|
||||
.put("path.home", "test-home-dir"))
|
||||
.put("path.home", "target/test-home-dir"))
|
||||
.clusterName(UUID.randomUUID().toString()).local(true).node()
|
||||
.client();
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.data.elasticsearch.annotations.Field;
|
||||
@Document(indexName = "test-log-index", type = "test-log-type", shards = 1, replicas = 0, refreshInterval = "-1")
|
||||
public class LogEntity {
|
||||
|
||||
private static final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
||||
private static final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
@@ -47,7 +47,7 @@ public class LogEntity {
|
||||
@Field(type = Ip)
|
||||
private String ip;
|
||||
|
||||
@Field(type = Date, format = DateFormat.basic_date_time)
|
||||
@Field(type = Date)
|
||||
private Date date;
|
||||
|
||||
private LogEntity() {
|
||||
|
||||
Reference in New Issue
Block a user