diff --git a/config/schema/elasticsearch_types/ai_assurance_portfolio_technique.json b/config/schema/elasticsearch_types/ai_assurance_portfolio_technique.json index 65f05e729..9a7c67b85 100644 --- a/config/schema/elasticsearch_types/ai_assurance_portfolio_technique.json +++ b/config/schema/elasticsearch_types/ai_assurance_portfolio_technique.json @@ -5,7 +5,8 @@ "principle", "key_function", "ai_assurance_technique", - "assurance_technique_approach" + "assurance_technique_approach", + "focus_sector" ], "expanded_search_result_fields": { "use_case": [ @@ -243,6 +244,12 @@ "label": "Educational", "value": "educational" } + ], + "focus_sector": [ + { + "label": "Financial Services", + "value": "financial-services" + } ] } } diff --git a/config/schema/field_definitions.json b/config/schema/field_definitions.json index c86ee0b1f..8f7212e87 100644 --- a/config/schema/field_definitions.json +++ b/config/schema/field_definitions.json @@ -1040,6 +1040,9 @@ "assurance_technique_approach": { "type": "identifiers" }, + "focus_sector": { + "type": "identifiers" + }, "algorithmic_transparency_record_organisation": { "description": "The organisation that published the record", diff --git a/lib/govuk_index/presenters/elasticsearch_presenter.rb b/lib/govuk_index/presenters/elasticsearch_presenter.rb index 420830377..491451a4e 100644 --- a/lib/govuk_index/presenters/elasticsearch_presenter.rb +++ b/lib/govuk_index/presenters/elasticsearch_presenter.rb @@ -73,6 +73,7 @@ def document email_document_supertype: common_fields.email_document_supertype, first_published_at: specialist.first_published_at, flood_and_coastal_erosion_category: specialist.flood_and_coastal_erosion_category, + focus_sector: specialist.focus_sector, format: common_fields.format, fund_state: specialist.fund_state, fund_type: specialist.fund_type, diff --git a/lib/govuk_index/presenters/specialist_presenter.rb b/lib/govuk_index/presenters/specialist_presenter.rb index cb3b865eb..cefab8714 100644 --- a/lib/govuk_index/presenters/specialist_presenter.rb +++ b/lib/govuk_index/presenters/specialist_presenter.rb @@ -54,6 +54,7 @@ class SpecialistPresenter delegate_to_payload :disease_type, convert_to_array: true delegate_to_payload :eligible_entities delegate_to_payload :flood_and_coastal_erosion_category + delegate_to_payload :focus_sector, convert_to_array: true delegate_to_payload :fund_state, convert_to_array: true delegate_to_payload :fund_type delegate_to_payload :funding_amount