Skip to content

Commit

Permalink
3612: Added search API
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed Jan 20, 2025
1 parent 7124516 commit e054c29
Show file tree
Hide file tree
Showing 24 changed files with 966 additions and 671 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

* [PR-436](https://github.com/itk-dev/hoeringsportal/pull/436)
Improved search
* [PR-435](https://github.com/itk-dev/hoeringsportal/pull/435)
Add usable config values for oidc
Update OIDC documentation
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ A number of `cron` jobs must be set up to make things happen automagically; see

* [Hoeringsportal data](web/modules/custom/hoeringsportal_data/README.md)
* [Hoeringsportal public meeting](web/modules/custom/hoeringsportal_public_meeting/README.md)

## Search

``` sh name=search-reindex
task drush -- search-api:reset-tracker
task drush -- search-api:rebuild-tracker
task drush -- search-api:index
```
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"drupal/publication_date": "^2.0",
"drupal/quick_node_clone": "^1.12",
"drupal/redirect": "^1.6",
"drupal/search_api": "^1.37",
"drupal/search_autocomplete": "^3.0",
"drupal/token_filter": "^2.1",
"drupal/toolbar_visibility": "^2.1",
Expand Down
69 changes: 68 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions config/sync/block.block.sogefelt_2.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
uuid: b459dc48-d810-4ad3-911e-52b3ba32c48e
langcode: da
status: true
dependencies:
config:
- core.entity_view_mode.node.search_result
- field.field.node.citizen_proposal.field_author_allow_email
- field.field.node.citizen_proposal.field_author_email
- field.field.node.citizen_proposal.field_author_email_display
- field.field.node.citizen_proposal.field_author_name
- field.field.node.citizen_proposal.field_author_phone
- field.field.node.citizen_proposal.field_author_uuid
- field.field.node.citizen_proposal.field_content_state
- field.field.node.citizen_proposal.field_getorganized_case_id
- field.field.node.citizen_proposal.field_more_info
- field.field.node.citizen_proposal.field_proposal
- field.field.node.citizen_proposal.field_remarks
- field.field.node.citizen_proposal.field_vote_end
- field.field.node.citizen_proposal.field_vote_start
- node.type.citizen_proposal
module:
- ds
- user
third_party_settings:
ds:
layout:
id: layout_onecol
library: layout_discovery/onecol
disable_css: false
entity_classes: all_classes
settings:
label: ''
regions:
content:
- node_title
- search_api_excerpt
fields:
node_title:
plugin_id: node_title
weight: 0
label: hidden
formatter: default
settings:
link: false
'link class': ''
wrapper: ''
class: ''
id: node.citizen_proposal.search_result
targetEntityType: node
bundle: citizen_proposal
mode: search_result
content:
search_api_excerpt:
settings: { }
third_party_settings: { }
weight: 1
region: content
hidden:
field_author_allow_email: true
field_author_email: true
field_author_email_display: true
field_author_name: true
field_author_phone: true
field_author_uuid: true
field_content_state: true
field_getorganized_case_id: true
field_more_info: true
field_proposal: true
field_remarks: true
field_vote_end: true
field_vote_start: true
langcode: true
links: true
published_at: true
sharing_buttons: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
uuid: f3a0fcb1-a319-4f38-8fdc-5c695c4927b3
langcode: da
status: true
dependencies:
config:
- core.entity_view_mode.node.search_result
- field.field.node.hearing.field_area
- field.field.node.hearing.field_contact
- field.field.node.hearing.field_content_state
- field.field.node.hearing.field_delete_date
- field.field.node.hearing.field_description
- field.field.node.hearing.field_deskpro_agent_email
- field.field.node.hearing.field_deskpro_department_id
- field.field.node.hearing.field_edoc_casefile_id
- field.field.node.hearing.field_getorganized_case_id
- field.field.node.hearing.field_hearing_ticket_add
- field.field.node.hearing.field_hearing_ticket_list
- field.field.node.hearing.field_lokalplaner
- field.field.node.hearing.field_map
- field.field.node.hearing.field_map_display
- field.field.node.hearing.field_media_document
- field.field.node.hearing.field_media_image
- field.field.node.hearing.field_more_info
- field.field.node.hearing.field_project_reference
- field.field.node.hearing.field_reply_deadline
- field.field.node.hearing.field_start_date
- field.field.node.hearing.field_tags
- field.field.node.hearing.field_teaser
- field.field.node.hearing.field_type
- field.field.node.hearing.field_video_embed
- node.type.hearing
module:
- ds
- user
third_party_settings:
ds:
layout:
id: layout_onecol
library: layout_discovery/onecol
disable_css: false
entity_classes: all_classes
settings:
label: ''
regions:
content:
- search_api_excerpt
- node_title
fields:
node_title:
plugin_id: node_title
weight: 1
label: hidden
formatter: default
settings:
link: false
wrapper: ''
class: ''
id: node.hearing.search_result
targetEntityType: node
bundle: hearing
mode: search_result
content:
search_api_excerpt:
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
field_area: true
field_contact: true
field_content_state: true
field_delete_date: true
field_description: true
field_deskpro_agent_email: true
field_deskpro_department_id: true
field_edoc_casefile_id: true
field_getorganized_case_id: true
field_hearing_ticket_add: true
field_hearing_ticket_list: true
field_lokalplaner: true
field_map: true
field_map_display: true
field_media_document: true
field_media_image: true
field_more_info: true
field_project_reference: true
field_reply_deadline: true
field_start_date: true
field_tags: true
field_teaser: true
field_type: true
field_video_embed: true
langcode: true
links: true
published_at: true
sharing_buttons: true
Loading

0 comments on commit e054c29

Please sign in to comment.