Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .platform/solr_config/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@
<dynamicField name="hts_*" type="pint" indexed="true" stored="false" multiValued="false" docValues="true"/>
<dynamicField name="htm_*" type="pint" indexed="true" stored="false" multiValued="true" docValues="true"/>

<!-- Unindexed string fields that can be used to store values that won't be searchable but have docValues -->
<dynamicField name="zdvs_*" type="string" indexed="false" stored="true" multiValued="false" docValues="true"/>
<dynamicField name="zdvm_*" type="string" indexed="false" stored="true" multiValued="true" docValues="true"/>
<!-- Unindexed string fields that can be used to store values that won't be searchable -->
<dynamicField name="zs_*" type="string" indexed="false" stored="true" multiValued="false"/>
<dynamicField name="zm_*" type="string" indexed="false" stored="true" multiValued="true"/>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"drupal/search_api_autocomplete": "^1.10",
"drupal/search_api_location": "^1.0@alpha",
"drupal/search_api_solr": "4.x-dev@dev",
"drupal/search_api_spellcheck": "4.0.x-dev@dev",
"drupal/search_api_spellcheck": "^4.0",
"drupal/seven": "^1.0",
"drupal/shs": "^2.0",
"drupal/silktide": "^10.3",
Expand Down
30 changes: 16 additions & 14 deletions composer.lock

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

40 changes: 27 additions & 13 deletions config/sync/search_api.index.contacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ langcode: en
status: true
dependencies:
config:
- field.storage.node.body
- field.storage.node.field_address
- field.storage.node.field_di_adi_no
- field.storage.node.field_di_areas
- field.storage.node.body
- field.storage.node.field_di_categories
- field.storage.node.field_di_firstname
- field.storage.node.field_di_lastname
- field.storage.node.field_supplementary_contact
- search_api.server.solr_default
module:
- node
- search_api_solr
- taxonomy
- node
- search_api
third_party_settings:
search_api_solr:
finalize: false
Expand Down Expand Up @@ -265,15 +264,24 @@ field_settings:
dependencies:
module:
- node
title_fulltext:
label: 'Title fulltext'
property_path: aggregated_field
type: text
boost: 13.0
configuration:
type: concat
fields:
- 'entity:node/title'
title_ngram:
label: Title
datasource_id: 'entity:node'
property_path: title
type: 'solr_text_custom:ngram'
boost: 21.0
dependencies:
module:
- node
title_spellcheck:
label: Title
datasource_id: 'entity:node'
property_path: title
type: solr_text_spellcheck
boost: 21.0
dependencies:
module:
- node
type:
label: 'Content type'
datasource_id: 'entity:node'
Expand All @@ -295,7 +303,10 @@ datasource_settings:
processor_settings:
add_url: { }
aggregated_field: { }
auto_aggregated_fulltext_field: { }
custom_value: { }
entity_status: { }
entity_type: { }
hierarchy:
weights:
preprocess_index: -45
Expand Down Expand Up @@ -329,7 +340,8 @@ processor_settings:
- postal_code
- sorting_code
- title
- title_fulltext
- title_ngram
- title_spellcheck
- type
title: true
alt: true
Expand All @@ -349,5 +361,7 @@ tracker_settings:
indexing_order: fifo
options:
cron_limit: 50
delete_on_fail: true
index_directly: true
track_changes_in_references: true
server: solr_default
38 changes: 29 additions & 9 deletions config/sync/search_api.index.default_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ langcode: en
status: true
dependencies:
config:
- field.storage.node.field_address
- core.entity_view_mode.node.full
- field.storage.node.body
- field.storage.node.field_address
- field.storage.node.field_contact_category
- field.storage.node.field_email_address
- field.storage.node.field_gp_practice_lead
- field.storage.node.field_gp_practice_member
- field.storage.node.field_hc_body_location
- field.storage.taxonomy_term.field_term_hc_synonyms
- field.storage.node.field_hc_body_system
- field.storage.node.field_hc_condition_type
- field.storage.node.field_hc_primary_symptom_1
Expand All @@ -21,17 +23,14 @@ dependencies:
- field.storage.node.field_site_themes
- field.storage.node.field_subtheme
- field.storage.node.field_summary
- field.storage.node.field_gp_practice_member
- field.storage.node.field_gp_practice_lead
- field.storage.taxonomy_term.field_term_hc_synonyms
- search_api.server.solr_default
- core.entity_view_mode.node.full
module:
- search_api_solr
- nidirect_gp
- node
- taxonomy
- search_api_location
- nidirect_gp
- search_api
- search_api_solr
- taxonomy
third_party_settings:
search_api_solr:
finalize: false
Expand Down Expand Up @@ -478,6 +477,24 @@ field_settings:
dependencies:
module:
- node
title_ngram:
label: Title
datasource_id: 'entity:node'
property_path: title
type: 'solr_text_custom:ngramstring'
boost: 3.0
dependencies:
module:
- node
title_spellcheck:
label: Title
datasource_id: 'entity:node'
property_path: title
type: solr_text_spellcheck
boost: 21.0
dependencies:
module:
- node
type:
label: 'Content type'
datasource_id: 'entity:node'
Expand Down Expand Up @@ -558,6 +575,8 @@ processor_settings:
- rendered_item
- rendered_item_spellcheck
- title
- title_ngram
- title_spellcheck
- type
title: false
alt: true
Expand All @@ -579,6 +598,7 @@ tracker_settings:
indexing_order: fifo
options:
cron_limit: 50
delete_on_fail: true
index_directly: true
track_changes_in_references: true
server: solr_default
14 changes: 11 additions & 3 deletions config/sync/views.view.contacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ display:
type: full
options:
offset: 0
pagination_heading_level: h4
items_per_page: 50
total_pages: null
id: 0
Expand All @@ -114,7 +115,6 @@ display:
offset: false
offset_label: Offset
quantity: 9
pagination_heading_level: h4
exposed_form:
type: input_required
options:
Expand Down Expand Up @@ -144,7 +144,7 @@ display:
plugin_id: search_api_spellcheck_did_you_mean
empty: true
search_api_spellcheck_count: 1
search_api_spellcheck_hide_on_result: 1
search_api_spellcheck_hide_on_result: true
search_api_spellcheck_collate: true
area:
id: area
Expand Down Expand Up @@ -227,9 +227,12 @@ display:
health_condition_author_user: '0'
health_condition_supervisor_user: '0'
driving_instructor_supervisor_user: '0'
qa_user: '0'
qa: '0'
expose_fields: false
placeholder: 'Search contacts'
searched_fields_id: ''
value_maxlength: 128
is_grouped: false
group_info:
label: ''
Expand All @@ -242,14 +245,17 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
parse_mode: sloppy_terms
parse_mode: terms
min_length: 2
fields:
- address_line1
- address_line2
- body
- field_supplementary_contact
- title_fulltext
- title_ngram
- title_spellcheck
- title_txtedge
style:
type: html_list
row:
Expand Down Expand Up @@ -286,6 +292,7 @@ display:
- 'user.node_grants:view'
tags:
- 'config:search_api.index.contacts'
- 'search_api_list:contacts'
contact_search:
id: contact_search
display_title: 'Embed: Contacts search'
Expand All @@ -310,3 +317,4 @@ display:
- 'user.node_grants:view'
tags:
- 'config:search_api.index.contacts'
- 'search_api_list:contacts'