Skip to content

Commit

Permalink
added solr_years config for index and facet
Browse files Browse the repository at this point in the history
  • Loading branch information
Willow Gillingham committed May 13, 2022
1 parent f7f0065 commit bbf327e
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ third_party_settings:
- field_date_created
- field_date_published
- field_date_copyrighted
- group_date_solr_year
- field_sort_date
parent_name: ''
weight: 2
format_type: details
Expand Down Expand Up @@ -195,20 +195,6 @@ third_party_settings:
classes: ''
open: false
label: Resources
group_date_solr_year:
children:
- field_years
parent_name: group_dates
weight: 46
format_type: details
region: content
format_settings:
id: ''
classes: ''
description: ''
open: false
required_fields: true
label: 'Date - Solr Year'
_core:
default_config_hash: HLvUbruUDjxBUB1PEtEQF7ZvGRY-87E68yLt78KBruM
id: node.islandora_object.default
Expand Down Expand Up @@ -238,7 +224,7 @@ content:
type: options_buttons
region: content
field_access_terms:
weight: 10
weight: 11
settings: { }
third_party_settings: { }
type: options_select
Expand Down Expand Up @@ -378,20 +364,20 @@ content:
region: content
field_display_hints:
type: options_buttons
weight: 11
weight: 12
region: content
settings: { }
third_party_settings: { }
field_dspace_identifier:
weight: 67
weight: 68
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
type: link_default
region: content
field_dspace_item_id:
weight: 68
weight: 69
settings:
size: 60
placeholder: ''
Expand Down Expand Up @@ -491,7 +477,7 @@ content:
region: content
field_member_of:
type: entity_reference_autocomplete
weight: 9
weight: 10
region: content
settings:
match_operator: CONTAINS
Expand Down Expand Up @@ -559,7 +545,7 @@ content:
type: options_buttons
region: content
field_sort_date:
weight: 69
weight: 46
settings: { }
third_party_settings: { }
type: datetime_default
Expand Down Expand Up @@ -600,15 +586,15 @@ content:
type: options_select
region: content
field_unique_id:
weight: 12
weight: 13
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_weight:
weight: 13
weight: 14
settings:
placeholder: ''
third_party_settings: { }
Expand Down
51 changes: 51 additions & 0 deletions codebase/config/sync/facets.facet.date.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
uuid: 36253efe-86ba-4782-9f32-74c27203c6fa
langcode: en
status: true
dependencies:
config:
- search_api.index.default_solr_index
- views.view.solr_search_content
module:
- search_api
id: date
name: Date
url_alias: date
weight: 0
min_count: 1
show_only_one_result: false
field_identifier: solr_years
facet_source_id: 'search_api:views_rest__solr_search_content__rest_export_1'
widget:
type: array
config:
show_numbers: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
exclude: false
only_visible_when_facet_source_is_visible: true
processor_configs:
active_widget_order:
processor_id: active_widget_order
weights:
sort: 20
settings:
sort: DESC
display_value_widget_order:
processor_id: display_value_widget_order
weights:
sort: 40
settings:
sort: DESC
url_processor_handler:
processor_id: url_processor_handler
weights:
pre_query: 50
build: 15
settings: { }
empty_behavior:
behavior: none
show_title: false
5 changes: 5 additions & 0 deletions codebase/config/sync/search_api.index.default_solr_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,10 @@ field_settings:
dependencies:
module:
- node
solr_years:
label: 'Solr Years'
property_path: solr_years
type: string
sort_date:
label: 'Sort Date'
property_path: sort_date
Expand Down Expand Up @@ -947,6 +951,7 @@ processor_settings:
solr_date_range:
weights:
preprocess_index: 0
solr_years: { }
sort_date: { }
tracker_settings:
default:
Expand Down

0 comments on commit bbf327e

Please sign in to comment.