When configuring facets with Views, the system throws schema validation errors because the configuration schema for views.filter.facets_filter is either missing or incomplete. This affects:
composer require drupal/search_api
vendor/bin/drush en search_api
vendor/bin/drush en search_api_db
composer require drupal/facets
composer require drupal/facets_exposed_filters
vendor/bin/drush en facets
vendor/bin/drush en facets_exposed_filters
Add proper schema definitions for the facets views filter, including:
Required Schema Elements:
views.filter.facets_filter:
type: views_filter
label: 'Facets filter'
mapping:
hierarchy:
type: boolean
label: 'Show hierarchy'
label_display:
type: string
facet:
type: mapping
mapping:
query_operator:
type: string
label: 'Query operator'
min_count:
type: integer
label: 'Minimum count'
show_numbers:
type: boolean
label: 'Show numbers'
processor_configs:
type: mapping
label: 'Processor settings'
mapping:
translate_entity:
type: mapping
label: 'Translate entity processor'
mapping:
processor_id:
type: string
label: 'The plugin ID of the processor'
weights:
type: sequence
label: 'The processor weights for different processing stages'
sequence:
type: integer
label: 'The processor weight for this stage'
settings:
type: plugin.plugin_configuration.facets_processor.translate_entity
label: 'Translate entity processor settings'
boolean_item:
type: mapping
label: 'Boolean item processor'
mapping:
processor_id:
type: string
label: 'The plugin ID of the processor'
weights:
type: sequence
label: 'The processor weights for different processing stages'
sequence:
type: integer
label: 'The processor weight for this stage'
settings:
type: plugin.plugin_configuration.facets_processor.boolean_item
label: 'Boolean item processor settings'
term_weight_widget_order:
type: mapping
label: 'Term weight widget order processor'
mapping:
processor_id:
type: string
label: 'The plugin ID of the processor'
weights:
type: sequence
label: 'The processor weights for different processing stages'
sequence:
type: integer
label: 'The processor weight for this stage'
settings:
type: plugin.plugin_configuration.facets_processor.term_weight_widget_order
label: 'Term weight widget order processor settings'
display_value_widget_order:
type: mapping
label: 'Display value widget order processor'
mapping:
processor_id:
type: string
label: 'The plugin ID of the processor'
weights:
type: sequence
label: 'The processor weights for different processing stages'
sequence:
type: integer
label: 'The processor weight for this stage'
settings:
type: plugin.plugin_configuration.facets_processor.display_value_widget_order
label: 'Display value widget order processor settings'
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.