From e7dc9bd8d25212ab2175b33bb8afc8a2648be6cd Mon Sep 17 00:00:00 2001 From: dleadbetter Date: Tue, 10 Dec 2024 12:21:17 -0500 Subject: [PATCH] BASIRA #272 - Adding document count facet --- app/models/search/artwork.rb | 1 + client/src/components/SearchFacets.js | 8 ++++++++ client/src/i18n/en.json | 1 + typesense/schema.json | 7 +++++++ 4 files changed, 17 insertions(+) diff --git a/app/models/search/artwork.rb b/app/models/search/artwork.rb index 8a38194..b119ac7 100644 --- a/app/models/search/artwork.rb +++ b/app/models/search/artwork.rb @@ -10,6 +10,7 @@ module Artwork search_attribute :id search_attribute :date_descriptor search_attribute :date_start + search_attribute :documents_count, facet: true search_attribute :object_work_type, object: 'Artwork', group: 'Object/Work Type', multiple: true, facet: true search_attribute :materials, object: 'Artwork', group: 'Material', multiple: true, facet: true search_attribute :techniques, object: 'Artwork', group: 'Technique', multiple: true, facet: true diff --git a/client/src/components/SearchFacets.js b/client/src/components/SearchFacets.js index aa083be..5ddf8fc 100644 --- a/client/src/components/SearchFacets.js +++ b/client/src/components/SearchFacets.js @@ -189,6 +189,14 @@ const SearchFacets = (props: any) => { toggleable useRefinementList={useRefinementList} /> +