From ba5efc55cb158a6da48b69dd347ceac0a526ed54 Mon Sep 17 00:00:00 2001 From: Vera Kahn Date: Tue, 3 Dec 2024 11:14:23 -0500 Subject: [PATCH] update filter config and swagger json --- lib/elasticsearch/config.js | 1 + swagger.v1.1.x.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/elasticsearch/config.js b/lib/elasticsearch/config.js index 4427b529..0efe1a30 100644 --- a/lib/elasticsearch/config.js +++ b/lib/elasticsearch/config.js @@ -74,6 +74,7 @@ const SEARCH_SCOPES = { } const FILTER_CONFIG = { + recordType: { operator: 'match', field: 'recordTypeId', repeatable: true }, owner: { operator: 'match', field: 'items.owner_packed', repeatable: true, path: 'items' }, subjectLiteral: { operator: 'match', field: 'subjectLiteral_exploded', repeatable: true }, holdingLocation: { operator: 'match', field: 'items.holdingLocation_packed', repeatable: true, path: 'items' }, diff --git a/swagger.v1.1.x.json b/swagger.v1.1.x.json index b430ca8c..9d71c52c 100644 --- a/swagger.v1.1.x.json +++ b/swagger.v1.1.x.json @@ -97,7 +97,7 @@ { "name": "filters[*]", "in": "query", - "description": "Specify a hash of filters to apply, where key is: 'buildingLocation', 'owner', 'subjectLiteral', 'holdingLocation', 'deliveryLocation', 'language', 'materialType', 'mediaType', 'carrierType', 'publisher', 'contributor', 'creator', 'issuance', 'createdYear', 'dateAfter', or 'dateBefore'", + "description": "Specify a hash of filters to apply, where key is: 'recordType','buildingLocation', 'owner', 'subjectLiteral', 'holdingLocation', 'deliveryLocation', 'language', 'materialType', 'mediaType', 'carrierType', 'publisher', 'contributor', 'creator', 'issuance', 'createdYear', 'dateAfter', or 'dateBefore'", "required": false, "type": "string" }, @@ -924,4 +924,4 @@ } } } -} +} \ No newline at end of file