Skip to content

Commit

Permalink
adding missing result mappings hostingCountry and endorsingNodeKey
Browse files Browse the repository at this point in the history
  • Loading branch information
fmendezh committed May 27, 2021
1 parent 17d40f1 commit b84da3d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,19 @@ public DatasetSearchResult toSearchResult(SearchHit hit) {
getDatasetSubTypeValue(fields, "subtype").ifPresent(d::setSubtype);
getHighlightOrStringValue(fields, hit.getHighlightFields(), "description")
.ifPresent(d::setDescription);

getUuidValue(fields, "publishingOrganizationKey").ifPresent(d::setPublishingOrganizationKey);
getHighlightOrStringValue(fields, hit.getHighlightFields(), "publishingOrganizationTitle")
.ifPresent(d::setPublishingOrganizationTitle);
getCountryValue(fields, "publishingCountry").ifPresent(d::setPublishingCountry);
getUuidValue(fields, "endorsingNodeKey").ifPresent(d::setEndorsingNodeKey);

getUuidValue(fields, "hostingOrganizationKey").ifPresent(d::setHostingOrganizationKey);
getHighlightOrStringValue(fields, hit.getHighlightFields(), "hostingOrganizationTitle")
.ifPresent(d::setHostingOrganizationTitle);
getCountryValue(fields, "hostingCountry").ifPresent(d::setHostingCountry);


getCountryValue(fields, "publishingCountry").ifPresent(d::setPublishingCountry);
getLicenceValue(fields, "license").ifPresent(d::setLicense);
getStringValue(fields, "projectId").ifPresent(d::setProjectIdentifier);

Expand Down

0 comments on commit b84da3d

Please sign in to comment.