Skip to content

Commit

Permalink
#537 fixed dataset search parameters documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Dec 28, 2023
1 parent 613f27f commit 9d48ca2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ public class DatasetJsonConverter {

private static final int MAX_FACET_LIMIT = 1200000;

// Collections
private static final String PROCESSING_NAMESPACE = "processing.gbif.org";
private static final String INSTITUTION_TAG_NAME = "institutionCode";
private static final String COLLECTION_TAG_NAME = "collectionCode";

// Gridded datasets
private static final String GRIDDED_DATASET_NAMESPACE = "griddedDataSet.jwaller.gbif.org";
private static final String GRIDDED_DATASET_NAME = "griddedDataset";
Expand Down Expand Up @@ -405,27 +400,6 @@ private void addTaxonKeys(Dataset dataset, ObjectNode datasetObjectNode) {
}

private void addMachineTags(Dataset dataset, ObjectNode datasetObjectNode) {
datasetObjectNode
.putArray("institutionKey")
.addAll(
dataset.getMachineTags().stream()
.filter(
mt ->
PROCESSING_NAMESPACE.equals(mt.getNamespace())
&& INSTITUTION_TAG_NAME.equals(mt.getName()))
.map(v -> new TextNode(v.getValue().split(":")[0]))
.collect(Collectors.toList()));
datasetObjectNode
.putArray("collectionKey")
.addAll(
dataset.getMachineTags().stream()
.filter(
mt ->
PROCESSING_NAMESPACE.equals(mt.getNamespace())
&& COLLECTION_TAG_NAME.equals(mt.getName()))
.map(v -> new TextNode(v.getValue().split(":")[0]))
.collect(Collectors.toList()));

// Gridded dataset
dataset.getMachineTags().stream()
.filter(
Expand Down
2 changes: 0 additions & 2 deletions registry-search/src/main/resources/dataset-es-mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@
"programmeAcronym": {"type": "keyword", "copy_to": "all"},
"keyword": {"type": "keyword", "copy_to": "all"},
"doi": {"type": "keyword", "copy_to": "all"},
"institutionKey": {"type": "keyword"},
"collectionKey": {"type": "keyword"},
"installationKey": {"type": "keyword"},
"publishingOrganizationKey": {"type": "keyword"},
"publishingOrganizationTitle": {"type": "text", "copy_to": "all"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,6 @@ public DatasetResource(
schema = @Schema(implementation = Country.class),
in = ParameterIn.QUERY,
explode = Explode.FALSE),
@Parameter(
name = "country",
description =
"The 2-letter country code (as per ISO-3166-1) of the country publishing the dataset.",
schema = @Schema(implementation = Country.class),
in = ParameterIn.QUERY,
explode = Explode.FALSE),
@Parameter(
name = "continent",
description = "Not implemented.",
Expand Down

0 comments on commit 9d48ca2

Please sign in to comment.