diff --git a/search-commons/src/main/java/no/unit/nva/search2/ImportCandidateQuery.java b/search-commons/src/main/java/no/unit/nva/search2/ImportCandidateQuery.java index 5fddd3b14..e51779a15 100644 --- a/search-commons/src/main/java/no/unit/nva/search2/ImportCandidateQuery.java +++ b/search-commons/src/main/java/no/unit/nva/search2/ImportCandidateQuery.java @@ -208,7 +208,8 @@ protected void setValue(String key, String value) { case FIELDS -> query.setQueryValue(qpKey, expandFields(value)); case SORT -> addSortQuery(value); case SORT_ORDER -> addSortOrderQuery(value); - case PUBLISHED_BEFORE, PUBLISHED_SINCE, + case ADDITIONAL_IDENTIFIERS, ADDITIONAL_IDENTIFIERS_NOT, ADDITIONAL_IDENTIFIERS_SHOULD, + PUBLISHED_BEFORE, PUBLISHED_SINCE, CATEGORY, CATEGORY_NOT, CATEGORY_SHOULD, COLLABORATION_TYPE, DOI, DOI_NOT, DOI_SHOULD, diff --git a/search-commons/src/main/java/no/unit/nva/search2/model/ParameterKeyImportCandidate.java b/search-commons/src/main/java/no/unit/nva/search2/model/ParameterKeyImportCandidate.java index 22071993a..43fb999f2 100644 --- a/search-commons/src/main/java/no/unit/nva/search2/model/ParameterKeyImportCandidate.java +++ b/search-commons/src/main/java/no/unit/nva/search2/model/ParameterKeyImportCandidate.java @@ -33,6 +33,9 @@ public enum ParameterKeyImportCandidate implements ParameterKey { INVALID(TEXT), // Parameters converted to Lucene query + ADDITIONAL_IDENTIFIERS(KEYWORD, MUST, Constants.ADDITIONAL_IDENTIFIERS_VALUE_KEYWORD), + ADDITIONAL_IDENTIFIERS_NOT(KEYWORD, MUST_NOT, Constants.ADDITIONAL_IDENTIFIERS_VALUE_KEYWORD), + ADDITIONAL_IDENTIFIERS_SHOULD(TEXT, SHOULD, Constants.ADDITIONAL_IDENTIFIERS_VALUE_KEYWORD), CATEGORY(KEYWORD, Constants.ENTITY_DESCRIPTION_REFERENCE_PUBLICATION_INSTANCE_TYPE), CATEGORY_NOT(KEYWORD, MUST_NOT, Constants.ENTITY_DESCRIPTION_REFERENCE_PUBLICATION_INSTANCE_TYPE), CATEGORY_SHOULD(TEXT, SHOULD, Constants.ENTITY_DESCRIPTION_REFERENCE_PUBLICATION_INSTANCE_TYPE), @@ -201,5 +204,7 @@ private static class Constants { public static final String PUBLISHED_DATE = "publishedDate.year"; public static final String PUBLISHER = "publisher.id.keyword"; public static final String RESOURCE_OWNER = "owner.keyword"; + public static final String ADDITIONAL_IDENTIFIERS_VALUE_KEYWORD = "additionalIdentifiers.value.keyword"; + } } \ No newline at end of file