Skip to content

Commit

Permalink
Merge pull request #12 from DiSSCo/hotfix/update-ods-id
Browse files Browse the repository at this point in the history
update identifier field
  • Loading branch information
southeo authored Nov 13, 2024
2 parents 1d95d79 + fc5008d commit 7ea69a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ElasticSearchRepository {

private final ElasticsearchClient client;
private final ElasticSearchProperties properties;
private static final String SORT_BY = "ods:ID.keyword";
private static final String SORT_BY = "dcterms:identifier.keyword";

public List<JsonNode> getTargetObjects(List<SearchParam> searchParams, TargetType targetType,
String lastId, List<String> targetFields)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public abstract class AbstractExportJobService {
private final ExporterBackendClient exporterBackendClient;
private final S3Repository s3Repository;
protected final IndexProperties indexProperties;
protected static final String ID_FIELD = "ods:ID";
protected static final String ID_FIELD = "dcterms:identifier";
protected static final String PHYSICAL_ID_FIELD = "ods:physicalSpecimenID";


Expand Down
2 changes: 1 addition & 1 deletion src/test/java/eu/dissco/exportjob/utils/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private TestUtils() {
.setSerializationInclusion(Include.NON_NULL);
public static final String DOWNLOAD_LINK = "https://aws.download/s3";
public static final String ORG_FIELD_NAME = "$['ods:organisationID']";
public static final String ID_FIELD = "ods:ID";
public static final String ID_FIELD = "dcterms:identifier";
public static final String PHYS_ID_FIELD = "ods:physicalSpecimenID";
public static final String TEMP_FILE_NAME = "src/main/resources/tmp.csv.gz";

Expand Down

0 comments on commit 7ea69a9

Please sign in to comment.