From 795c6438718c571a0385e97ea1743d6d0c44f5d1 Mon Sep 17 00:00:00 2001 From: Ian O'Connor Date: Thu, 2 Apr 2026 13:50:59 -0400 Subject: [PATCH] Ignore case in search for roles in contributor browse --- lib/contributors.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/contributors.js b/lib/contributors.js index 4ccf874c..90cdeb15 100644 --- a/lib/contributors.js +++ b/lib/contributors.js @@ -106,8 +106,20 @@ const buildElasticRoleCountQuery = function (contributorList) { return { size: 0, query: { - terms: { - browseableContributorRole_packed: contributorList + bool: { + should: [ + { + terms: { + 'creatorLiteral.keywordLowercased': contributorList + } + }, + { + terms: { + 'contributorLiteral.keywordLowercased': contributorList + } + } + ], + minimum_should_match: 1 } }, aggs: {