فهرست منبع

started search-api view for ressources

bach 4 روز پیش
والد
کامیت
174479848c
4فایلهای تغییر یافته به همراه242 افزوده شده و 10 حذف شده
  1. 1 0
      composer.json
  2. 10 10
      composer.lock
  3. 216 0
      config/sync/search_api.index.ressources.yml
  4. 15 0
      config/sync/search_api.server.eql.yml

+ 1 - 0
composer.json

@@ -40,6 +40,7 @@
         "drupal/panels": "^4.6",
         "drupal/paragraphs": "1.x-dev@dev",
         "drupal/role_delegation": "^1.1",
+        "drupal/search_api": "^1.30",
         "drupal/slick": "^2.9",
         "drupal/smart_trim": "^2.1.0",
         "drupal/structure_sync": "^2.0",

+ 10 - 10
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "8caf5041bf39fd16d88787901df64c6c",
+    "content-hash": "d674c48d6cb87eb52504ecc6585c24ea",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -8318,7 +8318,7 @@
             "extra": {
                 "drupal": {
                     "version": "8.x-1.30",
-                    "datestamp": "1697366291",
+                    "datestamp": "1700925904",
                     "security-coverage": {
                         "status": "covered",
                         "message": "Covered by Drupal's security advisory policy"
@@ -15562,15 +15562,12 @@
     "aliases": [],
     "minimum-stability": "stable",
     "stability-flags": {
-        "drupal/config_pages": 20,
-        "drupal/manage_display": 20,
-        "drupal/page_manager": 20,
-        "drupal/paragraphs": 20,
         "drupal/bulkdelete": 20,
-        "drupal/cshs": 20,
-        "drupal/config_ignore": 5,
         "drupal/config_devel": 20,
+        "drupal/config_ignore": 5,
+        "drupal/config_pages": 20,
         "drupal/context": 10,
+        "drupal/cshs": 20,
         "drupal/date_range_formatter": 20,
         "drupal/domain": 20,
         "drupal/domain_alias": 20,
@@ -15585,9 +15582,12 @@
         "drupal/linkit": 10,
         "drupal/login_destination": 20,
         "drupal/maillog": 20,
+        "drupal/manage_display": 20,
         "drupal/maxlength": 10,
         "drupal/menu_block": 20,
         "drupal/menu_position": 20,
+        "drupal/page_manager": 20,
+        "drupal/paragraphs": 20,
         "drupal/path_alias_xt": 20,
         "drupal/pathologic": 15,
         "drupal/profile": 5,
@@ -15598,7 +15598,7 @@
     },
     "prefer-stable": true,
     "prefer-lowest": false,
-    "platform": [],
-    "platform-dev": [],
+    "platform": {},
+    "platform-dev": {},
     "plugin-api-version": "2.6.0"
 }

+ 216 - 0
config/sync/search_api.index.ressources.yml

@@ -0,0 +1,216 @@
+uuid: 631f7430-7c9e-4712-989e-206cc6dc360d
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_auteur_s_
+    - field.storage.node.field_edition
+    - field.storage.node.field_liens
+    - field.storage.node.field_sous_titre
+    - field.storage.node.field_textes
+    - field.storage.paragraph.field_titre
+    - field.storage.node.field_mots_clefs
+    - field.storage.node.field_type_de_ressource
+    - field.storage.paragraph.field_texte
+    - field.storage.node.field_projets_liee
+    - search_api.server.eql
+  module:
+    - paragraphs
+    - taxonomy
+    - node
+    - search_api
+id: ressources
+name: ressources
+description: ''
+read_only: false
+field_settings:
+  field_auteur_s_:
+    label: Auteur(s)
+    datasource_id: 'entity:node'
+    property_path: field_auteur_s_
+    type: text
+    dependencies:
+      config:
+        - field.storage.node.field_auteur_s_
+  field_edition:
+    label: Édition
+    datasource_id: 'entity:node'
+    property_path: field_edition
+    type: text
+    dependencies:
+      config:
+        - field.storage.node.field_edition
+  field_liens:
+    label: Liens
+    datasource_id: 'entity:node'
+    property_path: field_liens
+    type: string
+    dependencies:
+      config:
+        - field.storage.node.field_liens
+  field_sous_titre:
+    label: 'Sous titre'
+    datasource_id: 'entity:node'
+    property_path: field_sous_titre
+    type: text
+    dependencies:
+      config:
+        - field.storage.node.field_sous_titre
+  field_titre:
+    label: 'Textes » Paragraph » Titre'
+    datasource_id: 'entity:node'
+    property_path: 'field_textes:entity:field_titre'
+    type: string
+    dependencies:
+      config:
+        - field.storage.node.field_textes
+        - field.storage.paragraph.field_titre
+      module:
+        - paragraphs
+  name:
+    label: 'Mots clefs » Terme de taxonomie » Nom'
+    datasource_id: 'entity:node'
+    property_path: 'field_mots_clefs:entity:name'
+    type: string
+    dependencies:
+      config:
+        - field.storage.node.field_mots_clefs
+      module:
+        - taxonomy
+  name_1:
+    label: 'Type de contenu » Terme de taxonomie » Nom'
+    datasource_id: 'entity:node'
+    property_path: 'field_type_de_ressource:entity:name'
+    type: string
+    dependencies:
+      config:
+        - field.storage.node.field_type_de_ressource
+      module:
+        - taxonomy
+  node_grants:
+    label: 'Information d''accès du nœud.'
+    property_path: search_api_node_grants
+    type: string
+    indexed_locked: true
+    type_locked: true
+    hidden: true
+  processed:
+    label: 'Textes » Paragraph » Texte » Texte traité'
+    datasource_id: 'entity:node'
+    property_path: 'field_textes:entity:field_texte:processed'
+    type: string
+    dependencies:
+      config:
+        - field.storage.node.field_textes
+        - field.storage.paragraph.field_texte
+      module:
+        - paragraphs
+  status:
+    label: null
+    datasource_id: 'entity:node'
+    property_path: status
+    type: boolean
+    indexed_locked: true
+    type_locked: true
+    dependencies:
+      module:
+        - node
+  title:
+    label: 'Projet(s) lié(s) » Contenu » Titre'
+    datasource_id: 'entity:node'
+    property_path: 'field_projets_liee:entity:title'
+    type: string
+    dependencies:
+      config:
+        - field.storage.node.field_projets_liee
+      module:
+        - node
+  title_1:
+    label: Titre
+    datasource_id: 'entity:node'
+    property_path: title
+    type: text
+    boost: 1.1
+    dependencies:
+      module:
+        - node
+  uid:
+    label: null
+    datasource_id: 'entity:node'
+    property_path: uid
+    type: integer
+    indexed_locked: true
+    type_locked: true
+    dependencies:
+      module:
+        - node
+datasource_settings:
+  'entity:node':
+    bundles:
+      default: false
+      selected:
+        - ressource
+    languages:
+      default: false
+      selected:
+        - fr
+processor_settings:
+  add_url: {  }
+  aggregated_field: {  }
+  content_access:
+    weights:
+      preprocess_query: -30
+  custom_value: {  }
+  entity_type: {  }
+  html_filter:
+    weights:
+      preprocess_index: -15
+      preprocess_query: -15
+    all_fields: false
+    fields:
+      - field_auteur_s_
+      - field_edition
+      - field_liens
+      - field_sous_titre
+      - field_titre
+      - name
+      - name_1
+      - processed
+      - title
+      - title_1
+    title: true
+    alt: true
+    tags:
+      b: 2
+      em: 1
+      h1: 5
+      h2: 3
+      h3: 2
+      strong: 2
+      u: 1
+  ignorecase:
+    weights:
+      preprocess_index: -20
+      preprocess_query: -20
+    all_fields: false
+    fields:
+      - field_auteur_s_
+      - field_edition
+      - field_liens
+      - field_sous_titre
+      - field_titre
+      - name
+      - name_1
+      - processed
+      - title
+      - title_1
+  language_with_fallback: {  }
+  rendered_item: {  }
+tracker_settings:
+  default:
+    indexing_order: fifo
+options:
+  cron_limit: 50
+  index_directly: true
+  track_changes_in_references: true
+server: eql

+ 15 - 0
config/sync/search_api.server.eql.yml

@@ -0,0 +1,15 @@
+uuid: 8a323738-52ed-4df4-9eb0-d254241f511d
+langcode: fr
+status: true
+dependencies:
+  module:
+    - search_api_db
+id: eql
+name: eql
+description: ''
+backend: search_api_db
+backend_config:
+  database: 'default:default'
+  min_chars: 3
+  matching: words
+  phrase: bigram