Skip to content

Commit

Permalink
Changed CDR31Document to serialize _id field
Browse files Browse the repository at this point in the history
  • Loading branch information
aecio committed Oct 24, 2017
1 parent d597501 commit 13d3cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/focusedCrawler/memex/cdr/CDR31Document.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.apache.tika.mime.MediaType;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand All @@ -27,6 +26,7 @@
@JsonInclude(Include.NON_NULL)
public class CDR31Document implements Serializable {

@JsonProperty("_id")
private String _id;

@JsonProperty("content_type")
Expand Down Expand Up @@ -110,7 +110,7 @@ public String getContentType() {
return contentType;
}

@JsonIgnore
@JsonProperty("_id")
public String getId() {
return this._id;
}
Expand Down

0 comments on commit 13d3cb6

Please sign in to comment.