recherche full texte

This commit is contained in:
2026-12-01 21:11:30 +01:00
parent d021058b11
commit 1ea6326bf4
16 changed files with 833 additions and 15 deletions
+315
View File
@@ -0,0 +1,315 @@
uuid: f0aef62b-1654-481b-9951-b41d088053c9
langcode: fr
status: true
dependencies:
config:
- search_api.server.base_de_donnees
module:
- node
- search_api
id: contenu
name: Contenu
description: 'Projets et événements, avec les personnes, lieux, partenaires et types qui y sont liés.'
read_only: false
field_settings:
accompagnants:
label: 'Accompagné·e(s) par'
datasource_id: 'entity:node'
property_path: 'field_invite_accompagne_curate_p:entity:title'
type: text
boost: 3.0
accompagnants_bio:
label: 'Accompagné·e(s) par : biographie'
datasource_id: 'entity:node'
property_path: 'field_invite_accompagne_curate_p:entity:body'
type: text
boost: 0.3
artistes:
label: 'Artiste(s) invité(s)'
datasource_id: 'entity:node'
property_path: 'field_artiste_s_invite_s:entity:title'
type: text
boost: 3.0
artistes_bio:
label: 'Artiste(s) invité(s) : biographie'
datasource_id: 'entity:node'
property_path: 'field_artiste_s_invite_s:entity:body'
type: text
boost: 0.3
body:
label: Texte
datasource_id: 'entity:node'
property_path: body
type: text
evenements_lies:
label: 'Événement(s) lié(s)'
datasource_id: 'entity:node'
property_path: 'field_evenement_s_lie_s:entity:title'
type: text
infos_pratiques:
label: 'Infos pratiques'
datasource_id: 'entity:node'
property_path: field_infos_pratiques
type: text
language_with_fallback:
label: 'Langue (avec repli)'
property_path: language_with_fallback
type: string
lieu:
label: Lieu
datasource_id: 'entity:node'
property_path: 'field_lieu:entity:title'
type: text
boost: 2.0
lieu_ville:
label: 'Lieu : ville'
datasource_id: 'entity:node'
property_path: 'field_lieu:entity:field_address:locality'
type: text
boost: 2.0
partenaires:
label: Partenaire(s)
datasource_id: 'entity:node'
property_path: 'field_partenaire_s:entity:title'
type: text
boost: 2.0
projets_lies:
label: 'Projet(s) lié(s)'
datasource_id: 'entity:node'
property_path: 'field_projet_s_lie_s:entity:title'
type: text
status:
label: Publié
datasource_id: 'entity:node'
property_path: status
type: boolean
indexed_locked: true
type_locked: true
title:
label: Titre
datasource_id: 'entity:node'
property_path: title
type: text
boost: 8.0
type:
label: 'Type de contenu'
datasource_id: 'entity:node'
property_path: type
type: string
type_d_evenement:
label: "Type d'événement"
datasource_id: 'entity:node'
property_path: 'field_type_d_evenement:entity:name'
type: text
boost: 2.0
type_de_projet:
label: 'Type de projet'
datasource_id: 'entity:node'
property_path: 'field_type_de_projet:entity:name'
type: text
boost: 2.0
datasource_settings:
'entity:node':
bundles:
default: false
selected:
- evenement
- projet
languages:
default: true
selected: { }
processor_settings:
add_url: { }
aggregated_field: { }
entity_status: { }
entity_type: { }
html_filter:
weights:
preprocess_index: -15
preprocess_query: -15
all_fields: false
fields:
- accompagnants_bio
- artistes_bio
- body
- infos_pratiques
title: false
alt: false
tags:
b: 2.0
h2: 3.0
h3: 2.0
strong: 2.0
ignorecase:
weights:
preprocess_index: -20
preprocess_query: -20
all_fields: true
fields:
- accompagnants
- accompagnants_bio
- artistes
- artistes_bio
- body
- evenements_lies
- infos_pratiques
- lieu
- lieu_ville
- partenaires
- projets_lies
- title
- type_d_evenement
- type_de_projet
language_with_fallback: { }
stopwords:
weights:
preprocess_index: -5
preprocess_query: -2
all_fields: true
fields:
- accompagnants
- accompagnants_bio
- artistes
- artistes_bio
- body
- evenements_lies
- infos_pratiques
- lieu
- lieu_ville
- partenaires
- projets_lies
- title
- type_d_evenement
- type_de_projet
stopwords:
- a
- an
- and
- au
- aux
- avec
- c
- ce
- ces
- d
- dans
- de
- des
- du
- elle
- en
- est
- et
- eux
- for
- il
- in
- j
- je
- l
- la
- le
- les
- leur
- lui
- m
- ma
- mais
- me
- mes
- moi
- mon
- même
- 'n'
- ne
- nos
- notre
- nous
- of
- 'on'
- 'on'
- ou
- par
- pas
- pour
- qu
- que
- qui
- s
- sa
- se
- ses
- son
- sont
- sur
- t
- ta
- te
- tes
- the
- to
- toi
- ton
- tu
- un
- une
- vos
- votre
- vous
- with
- 'y'
- été
- être
tokenizer:
weights:
preprocess_index: -6
preprocess_query: -6
all_fields: true
fields:
- accompagnants
- accompagnants_bio
- artistes
- artistes_bio
- body
- evenements_lies
- infos_pratiques
- lieu
- lieu_ville
- partenaires
- projets_lies
- title
- type_d_evenement
- type_de_projet
spaces: ''
ignored: ._-
overlap_cjk: 1
minimum_word_size: '2'
transliteration:
weights:
preprocess_index: -20
preprocess_query: -20
all_fields: true
fields:
- accompagnants
- accompagnants_bio
- artistes
- artistes_bio
- body
- evenements_lies
- infos_pratiques
- lieu
- lieu_ville
- partenaires
- projets_lies
- title
- type_d_evenement
- type_de_projet
tracker_settings:
default:
indexing_order: fifo
options:
cron_limit: 50
delete_on_fail: true
index_directly: true
track_changes_in_references: true
server: base_de_donnees
@@ -0,0 +1,18 @@
uuid: e46c37b4-c965-47d3-82e7-7823b2a09545
langcode: fr
status: true
dependencies:
module:
- search_api_db
id: base_de_donnees
name: 'Base de données'
description: 'Recherche plein texte du site, stockée dans MariaDB.'
backend: search_api_db
backend_config:
database: 'default:default'
min_chars: 2
matching: partial
phrase: bigram
autocomplete:
suggest_suffix: true
suggest_words: true
+229
View File
@@ -0,0 +1,229 @@
uuid: e13e2f8f-827c-4fd1-b801-25eb51391d5d
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- search_api.index.contenu
module:
- search_api
id: recherche
label: Recherche
module: views
description: 'Résultats de la recherche plein texte (projets et événements).'
tag: ''
base_table: search_api_index_contenu
base_field: search_api_id
display:
default:
id: default
display_title: Default
display_plugin: default
position: 0
display_options:
title: Recherche
pager:
type: full
options:
offset: 0
items_per_page: 24
total_pages: null
id: 0
tags:
next: ›
previous: ‹
first: «
last: »
expose:
items_per_page: false
items_per_page_label: 'Éléments par page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- Tout -'
offset: false
offset_label: Décalage
quantity: 9
exposed_form:
type: input_required
options:
submit_button: Rechercher
reset_button: false
reset_button_label: Réinitialiser
exposed_sorts_label: 'Trier par'
expose_sort_order: false
sort_asc_label: Asc
sort_desc_label: Desc
text_input_required: ''
text_input_required_format: plain_text
access:
type: perm
options:
perm: 'access content'
cache:
type: search_api_tag
options: { }
empty:
area_text_custom:
id: area_text_custom
table: views
field: area_text_custom
relationship: none
group_type: group
admin_label: ''
plugin_id: text_custom
empty: true
content: 'Aucun résultat.'
tokenize: false
sorts:
search_api_relevance:
id: search_api_relevance
table: search_api_index_contenu
field: search_api_relevance
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api
order: DESC
expose:
label: ''
field_identifier: ''
exposed: false
arguments: { }
filters:
search_api_fulltext:
id: search_api_fulltext
table: search_api_index_contenu
field: search_api_fulltext
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_fulltext
operator: and
value: ''
group: 1
exposed: true
expose:
operator_id: search_api_fulltext_op
label: Rechercher
description: ''
use_operator: false
operator: search_api_fulltext_op
operator_limit_selection: false
operator_list: { }
identifier: search
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
placeholder: 'Rechercher sur le site…'
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
parse_mode: terms
min_length: 2
fields: { }
language_with_fallback:
id: language_with_fallback
table: search_api_index_contenu
field: language_with_fallback
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_language
operator: in
value:
'***LANGUAGE_language_content***': '***LANGUAGE_language_content***'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
style:
type: default
row:
type: search_api
options:
view_modes:
'entity:node':
evenement: teaser
projet: teaser
query:
type: search_api_query
options:
bypass_access: false
skip_access: false
preserve_facet_query_args: false
query_tags: { }
relationships: { }
css_class: views-recherche
header: { }
footer: { }
rendering_language: '***LANGUAGE_entity_translation***'
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags:
- 'config:search_api.index.contenu'
- 'search_api_list:contenu'
page_1:
id: page_1
display_title: Page
display_plugin: page
position: 1
display_options:
display_extenders: { }
path: recherche
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags:
- 'config:search_api.index.contenu'
- 'search_api_list:contenu'