Skip to content

Commit

Permalink
Merge pull request #2271 from EIC-EA/EICNET-1996
Browse files Browse the repository at this point in the history
EICNET-1996: Following - filters - topics of interest
  • Loading branch information
arismag authored Jan 14, 2025
2 parents c4b7e16 + 5a5664b commit a75bd2a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/sync/context.context.following.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ reactions:
sm_content_field_vocab_topics_string: sm_content_field_vocab_topics_string
ss_content_language_label: ss_content_language_label
sm_author_topic_expertise_name: sm_author_topic_expertise_name
sm_author_topic_interest_name: sm_author_topic_interest_name
sort_options: { }
enable_search: 1
prefilter_group: 0
Expand Down
14 changes: 14 additions & 0 deletions config/sync/search_api.index.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,20 @@ field_settings:
- profile
- taxonomy
- user
author_topic_interest_name:
label: 'Referenced node » Content » Authored by » User » Member profiles » Profile » Topics of Interest » Taxonomy term » Name'
datasource_id: 'entity:message'
property_path: 'field_referenced_node:entity:uid:entity:member_profiles:entity:field_vocab_topic_interest:entity:name'
type: string
dependencies:
config:
- field.storage.message.field_referenced_node
- field.storage.profile.field_vocab_topic_interest
module:
- node
- profile
- taxonomy
- user
changed:
label: Changed
datasource_id: 'entity:node'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function getAvailableFacets(): array {
'sm_content_field_vocab_topics_string' => $this->t('Topic', [], ['context' => 'eic_search']),
'ss_content_language_label' => $this->t('Language', [], ['context' => 'eic_search']),
'sm_author_topic_expertise_name' => $this->t('Topic expertise', [], ['context' => 'eic_search']),
'sm_author_topic_interest_name' => $this->t('Topic interest', [], ['context' => 'eic_search']),
];
}

Expand Down

0 comments on commit a75bd2a

Please sign in to comment.