solr json payload model #30

Merged
claudio.atzori merged 6 commits from solr_json_model into master 2024-03-22 10:20:37 +01:00
1 changed files with 12 additions and 1 deletions
Showing only changes of commit 04654b16f9 - Show all commits

View File

@ -19,11 +19,14 @@ public class SolrRecordHeader implements Serializable {
private RecordType recordType; private RecordType recordType;
public static SolrRecordHeader newInstance(String id, List<String> originalId, RecordType recordType) { private Boolean deletedbyinference;
public static SolrRecordHeader newInstance(String id, List<String> originalId, RecordType recordType, Boolean deletedbyinference) {
SolrRecordHeader header = new SolrRecordHeader(); SolrRecordHeader header = new SolrRecordHeader();
header.setId(id); header.setId(id);
header.setOriginalId(originalId); header.setOriginalId(originalId);
header.setRecordType(recordType); header.setRecordType(recordType);
header.setDeletedbyinference(deletedbyinference);
return header; return header;
} }
@ -50,4 +53,12 @@ public class SolrRecordHeader implements Serializable {
public void setRecordType(RecordType recordType) { public void setRecordType(RecordType recordType) {
this.recordType = recordType; this.recordType = recordType;
} }
public Boolean getDeletedbyinference() {
return deletedbyinference;
}
public void setDeletedbyinference(Boolean deletedbyinference) {
this.deletedbyinference = deletedbyinference;
}
} }