fixed bug with search index that came from deleting full_name base field

This commit is contained in:
naomi 2022-03-31 14:13:59 +01:00
parent 9506cd0cb6
commit 08338ee3bd
2 changed files with 126 additions and 133 deletions

View File

@ -2,11 +2,11 @@ uuid: 42f67f66-427a-4ad4-94d7-fc4030cb03dc
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
config:
- search_api.server.opencase_server
module: module:
- opencase_entities - opencase_entities
- search_api - search_api
config:
- search_api.server.opencase_server
_core: _core:
default_config_hash: s9NYpOvmdxpnBo0ToogG7_ayW0tI98Q6ND4qtkfxq-s default_config_hash: s9NYpOvmdxpnBo0ToogG7_ayW0tI98Q6ND4qtkfxq-s
id: opencase_actors id: opencase_actors
@ -22,14 +22,6 @@ field_settings:
dependencies: dependencies:
module: module:
- opencase_entities - opencase_entities
full_name:
label: Name
datasource_id: 'entity:oc_actor'
property_path: full_name
type: text
dependencies:
module:
- opencase_entities
last_name: last_name:
label: 'Last Name' label: 'Last Name'
datasource_id: 'entity:oc_actor' datasource_id: 'entity:oc_actor'
@ -64,23 +56,23 @@ datasource_settings:
processor_settings: processor_settings:
add_url: { } add_url: { }
aggregated_field: { } aggregated_field: { }
entity_type: { }
ignorecase: ignorecase:
all_fields: true
fields:
- first_name
- full_name
- last_name
- name
weights: weights:
preprocess_index: -20 preprocess_index: -20
preprocess_query: -20 preprocess_query: -20
all_fields: true
fields:
- first_name
- last_name
- name
language_with_fallback: { } language_with_fallback: { }
rendered_item: { } rendered_item: { }
tracker_settings: tracker_settings:
default: default:
indexing_order: fifo indexing_order: fifo
options: options:
index_directly: true
cron_limit: 50 cron_limit: 50
index_directly: true
track_changes_in_references: true track_changes_in_references: true
server: opencase_server server: opencase_server

View File

@ -19,96 +19,12 @@ base_table: search_api_index_opencase_actors
base_field: search_api_id base_field: search_api_id
display: display:
default: default:
display_plugin: default
id: default id: default
display_title: Master display_title: Master
display_plugin: default
position: 0 position: 0
display_options: display_options:
access: title: 'Search Results'
type: role
options:
role:
authenticated: authenticated
cache:
type: none
options: { }
query:
type: views_query
options:
bypass_access: false
skip_access: false
exposed_form:
type: input_required
options:
submit_button: Search
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
text_input_required_format: full_html
pager:
type: mini
options:
items_per_page: 50
offset: 0
id: 0
total_pages: null
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
tags:
previous:
next:
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: true
override: true
sticky: false
caption: ''
summary: ''
description: ''
columns:
name: name
type: type
type_1: type_1
name_1: name_1
info:
name:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
type:
align: ''
separator: ''
empty_column: false
responsive: ''
type_1:
align: ''
separator: ''
empty_column: false
responsive: ''
name_1:
align: ''
separator: ''
empty_column: false
responsive: ''
default: '-1'
empty_table: false
row:
type: fields
fields: fields:
name: name:
id: name id: name
@ -117,6 +33,7 @@ display:
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
plugin_id: search_api_field
label: 'Organisation name ' label: 'Organisation name '
exclude: true exclude: true
alter: alter:
@ -179,7 +96,6 @@ display:
use_highlighting: false use_highlighting: false
multi_type: separator multi_type: separator
multi_separator: ', ' multi_separator: ', '
plugin_id: search_api_field
name_1: name_1:
id: name_1 id: name_1
table: search_api_datasource_opencase_actors_entity_oc_actor table: search_api_datasource_opencase_actors_entity_oc_actor
@ -187,6 +103,8 @@ display:
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
entity_type: oc_actor
plugin_id: search_api_field
label: Name label: Name
exclude: false exclude: false
alter: alter:
@ -249,8 +167,6 @@ display:
use_highlighting: false use_highlighting: false
multi_type: separator multi_type: separator
multi_separator: ', ' multi_separator: ', '
entity_type: oc_actor
plugin_id: search_api_field
type: type:
id: type id: type
table: search_api_datasource_opencase_actors_entity_oc_actor table: search_api_datasource_opencase_actors_entity_oc_actor
@ -258,6 +174,8 @@ display:
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
entity_type: oc_actor
plugin_id: search_api_field
label: 'Person type' label: 'Person type'
exclude: true exclude: true
alter: alter:
@ -323,8 +241,6 @@ display:
display_methods: display_methods:
oc_actor_type: oc_actor_type:
display_method: label display_method: label
entity_type: oc_actor
plugin_id: search_api_field
type_1: type_1:
id: type_1 id: type_1
table: search_api_datasource_opencase_actors_entity_oc_organisation table: search_api_datasource_opencase_actors_entity_oc_organisation
@ -332,6 +248,8 @@ display:
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
entity_type: oc_organisation
plugin_id: search_api_field
label: Type label: Type
exclude: false exclude: false
alter: alter:
@ -397,8 +315,59 @@ display:
display_methods: display_methods:
oc_organisation_type: oc_organisation_type:
display_method: label display_method: label
entity_type: oc_organisation pager:
plugin_id: search_api_field type: mini
options:
offset: 0
items_per_page: 50
total_pages: null
id: 0
tags:
next:
previous:
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
exposed_form:
type: input_required
options:
submit_button: Search
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
text_input_required_format: full_html
access:
type: role
options:
role:
authenticated: authenticated
cache:
type: none
options: { }
empty: { }
sorts:
search_api_relevance:
id: search_api_relevance
table: search_api_index_opencase_actors
field: search_api_relevance
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api
order: DESC
expose:
label: ''
field_identifier: search_api_relevance
exposed: false
arguments: { }
filters: filters:
search_api_fulltext: search_api_fulltext:
id: search_api_fulltext id: search_api_fulltext
@ -407,6 +376,7 @@ display:
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
plugin_id: search_api_fulltext
operator: and operator: and
value: '' value: ''
group: 1 group: 1
@ -417,6 +387,8 @@ display:
description: 'Type at least 3 letters and press enter.' description: 'Type at least 3 letters and press enter.'
use_operator: false use_operator: false
operator: search_api_fulltext_op operator: search_api_fulltext_op
operator_limit_selection: false
operator_list: { }
identifier: search_api_fulltext identifier: search_api_fulltext
required: false required: false
remember: false remember: false
@ -427,8 +399,6 @@ display:
administrator: '0' administrator: '0'
standard_user: '0' standard_user: '0'
placeholder: '' placeholder: ''
operator_limit_selection: false
operator_list: { }
is_grouped: false is_grouped: false
group_info: group_info:
label: '' label: ''
@ -444,28 +414,59 @@ display:
parse_mode: terms parse_mode: terms
min_length: 3 min_length: 3
fields: { } fields: { }
plugin_id: search_api_fulltext style:
sorts: type: table
search_api_relevance: options:
id: search_api_relevance grouping: { }
table: search_api_index_opencase_actors row_class: ''
field: search_api_relevance default_row_class: true
relationship: none columns:
group_type: group name: name
admin_label: '' type: type
order: DESC type_1: type_1
exposed: false name_1: name_1
expose: default: '-1'
label: '' info:
plugin_id: search_api name:
title: 'Search Results' sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
type:
align: ''
separator: ''
empty_column: false
responsive: ''
type_1:
align: ''
separator: ''
empty_column: false
responsive: ''
name_1:
align: ''
separator: ''
empty_column: false
responsive: ''
override: true
sticky: false
summary: ''
empty_table: false
caption: ''
description: ''
row:
type: fields
query:
type: views_query
options:
bypass_access: false
skip_access: false
relationships: { }
use_ajax: true
header: { } header: { }
footer: { } footer: { }
empty: { }
relationships: { }
arguments: { }
display_extenders: { } display_extenders: { }
use_ajax: true
cache_metadata: cache_metadata:
max-age: -1 max-age: -1
contexts: contexts:
@ -477,14 +478,14 @@ display:
tags: tags:
- 'config:search_api.index.opencase_actors' - 'config:search_api.index.opencase_actors'
page_1: page_1:
display_plugin: page
id: page_1 id: page_1
display_title: Page display_title: Page
display_plugin: page
position: 1 position: 1
display_options: display_options:
exposed_block: true
display_extenders: { } display_extenders: { }
path: actor-search path: actor-search
exposed_block: true
cache_metadata: cache_metadata:
max-age: -1 max-age: -1
contexts: contexts: