Skip to content

Commit

Permalink
feat(IYY-263): Add new search index for CAS content, remove path from…
Browse files Browse the repository at this point in the history
… search view, replace with custom dynamic route and controller, update header settings form with new option to show CAS titles in search
  • Loading branch information
codechefmarc committed Nov 20, 2024
1 parent 1733237 commit 0030acb
Show file tree
Hide file tree
Showing 10 changed files with 558 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ content:
content_moderation_control:
settings: { }
third_party_settings: { }
weight: -20
weight: 0
region: content
field_external_source:
type: link_separate
Expand All @@ -63,19 +63,29 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 2
weight: 3
region: content
field_login_required:
type: boolean
label: hidden
settings:
format: boolean
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 4
region: content
field_teaser_text:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
weight: 2
region: content
search_api_excerpt:
settings: { }
third_party_settings: { }
weight: 0
weight: 1
region: content
hidden:
field_category: true
Expand All @@ -100,7 +110,6 @@ hidden:
field_localist_id: true
field_localist_info: true
field_localist_register_enabled: true
field_login_required: true
field_metatags: true
field_stream_embed_code: true
field_stream_url: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ content:
content_moderation_control:
settings: { }
third_party_settings: { }
weight: -20
weight: 0
region: content
field_external_source:
type: link_separate
Expand All @@ -38,23 +38,32 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 2
weight: 3
region: content
field_login_required:
type: boolean
label: hidden
settings:
format: true-false
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 4
region: content
field_teaser_text:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
weight: 2
region: content
search_api_excerpt:
settings: { }
third_party_settings: { }
weight: 0
weight: 1
region: content
hidden:
field_category: true
field_login_required: true
field_metatags: true
field_tags: true
field_teaser_media: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@ dependencies:
- field.field.node.post.layout_builder__layout
- node.type.post
module:
- link
- text
- user
id: node.post.search_result
targetEntityType: node
bundle: post
mode: search_result
content:
content_moderation_control:
settings: { }
third_party_settings: { }
weight: 0
region: content
field_external_source:
type: link_separate
label: hidden
Expand All @@ -34,28 +40,38 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 2
weight: 3
region: content
field_login_required:
type: boolean
label: above
settings:
format: boolean
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 4
region: content
field_teaser_text:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
weight: 2
region: content
search_api_excerpt:
settings: { }
third_party_settings: { }
weight: 0
weight: 1
region: content
hidden:
field_author: true
field_category: true
field_login_required: true
field_metatags: true
field_publish_date: true
field_tags: true
field_teaser_media: true
field_teaser_title: true
layout_builder__layout: true
links: true
workflow_buttons: true
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ content:
content_moderation_control:
settings: { }
third_party_settings: { }
weight: -20
weight: 0
region: content
field_external_source:
type: link_separate
Expand All @@ -54,19 +54,29 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 2
weight: 3
region: content
field_login_required:
type: boolean
label: hidden
settings:
format: boolean
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 4
region: content
field_teaser_text:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
weight: 2
region: content
search_api_excerpt:
settings: { }
third_party_settings: { }
weight: 0
weight: 1
region: content
hidden:
field_address: true
Expand All @@ -76,7 +86,6 @@ hidden:
field_first_name: true
field_honorific_prefix: true
field_last_name: true
field_login_required: true
field_media: true
field_metatags: true
field_position: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
uuid: eaac8aa4-ebe9-48a6-8d40-2aefff92390f
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_teaser_text
- search_api.server.database_server
module:
- node
- search_api
- search_api_exclude
- search_api_html_element_filter
id: secure_index
name: 'Secure Index'
description: ''
read_only: false
field_settings:
field_teaser_text:
label: 'Teaser Text'
datasource_id: 'entity:node'
property_path: field_teaser_text
type: text
dependencies:
config:
- field.storage.node.field_teaser_text
rendered_item:
label: 'Rendered HTML output'
property_path: rendered_item
type: text
configuration:
roles:
- authenticated
view_mode:
'entity:node':
event: default
page: default
post: default
profile: default
status:
label: Published
datasource_id: 'entity:node'
property_path: status
type: boolean
dependencies:
module:
- node
type:
label: 'Content type'
datasource_id: 'entity:node'
property_path: type
type: string
dependencies:
module:
- node
uid:
label: 'Authored by'
datasource_id: 'entity:node'
property_path: uid
type: integer
dependencies:
module:
- node
datasource_settings:
'entity:node':
bundles:
default: true
selected: { }
languages:
default: true
selected: { }
processor_settings:
add_url: { }
aggregated_field: { }
custom_value: { }
entity_status: { }
entity_type: { }
highlight:
weights:
postprocess_query: 0
prefix: '<strong style="background-color: yellow;">'
suffix: '</strong>'
excerpt: true
excerpt_always: true
excerpt_length: 256
exclude_fields: { }
highlight: always
highlight_partial: false
html_element_filter:
weights:
postprocess_query: -30
preprocess_index: -50
all_fields: 0
fields:
- field_teaser_text
- rendered_item
- type
css_selectors: .visually-hidden
html_filter:
weights:
preprocess_index: -49
preprocess_query: -48
all_fields: false
fields:
- field_teaser_text
- rendered_item
title: true
alt: true
tags:
b: 2
h1: 5
h2: 3
h3: 2
strong: 2
ignorecase:
weights:
preprocess_index: -48
preprocess_query: -47
all_fields: true
fields:
- field_teaser_text
- rendered_item
- type
language_with_fallback: { }
node_exclude: { }
rendered_item: { }
stemmer:
weights:
preprocess_index: -42
preprocess_query: -42
all_fields: false
fields:
- field_teaser_text
- rendered_item
exceptions:
mexican: mexic
texan: texa
tokenizer:
weights:
preprocess_index: -45
preprocess_query: -44
all_fields: false
fields:
- field_teaser_text
- rendered_item
spaces: ''
ignored: ._-
overlap_cjk: 1
minimum_word_size: '3'
transliteration:
weights:
preprocess_index: -47
preprocess_query: -46
all_fields: true
fields:
- field_teaser_text
- rendered_item
- type
tracker_settings:
default:
indexing_order: fifo
options:
cron_limit: 50
index_directly: true
track_changes_in_references: true
server: database_server
Loading

0 comments on commit 0030acb

Please sign in to comment.