Skip to content

Commit

Permalink
work for multi taxonomy support
Browse files Browse the repository at this point in the history
  • Loading branch information
djtfmartin committed Sep 12, 2024
1 parent 843add6 commit d09219a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ public enum OccurrenceEsField implements EsField {

CLASSIFICATIONS(new BaseEsField("classifications", null)),


CHECKLIST_KEY(new BaseEsField("classifications", GbifTerm.checklistKey)),
CHECKLIST_KEY(new BaseEsField("associatedClassifications", GbifTerm.checklistKey)),

// Legacy Taxonomic classification - these mappings are not used if checklistKey is specified
USAGE_TAXON_KEY(new BaseEsField("gbifClassification.usage.key", GbifTerm.taxonKey)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,6 @@ private List<QueryBuilder> buildTermQuery(
queries.add(buildRangeQuery(esField, value));
}
continue;
} else if (esField.getTerm().equals(GbifTerm.checklistKey)) {
queries.add(QueryBuilders.existsQuery(esField.getExactMatchFieldName() + "." + value));
continue;
}

parsedValues.add(parseParamValue(value, param));
Expand Down

0 comments on commit d09219a

Please sign in to comment.