DATAES-211 -clean up

This commit is contained in:
Mohsin Husen
2016-02-10 14:51:57 +00:00
parent 8963123ffe
commit 924467ec94
8 changed files with 6 additions and 142 deletions

View File

@@ -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();
}

View File

@@ -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() {