search.schema.yml 2.12 KB
Newer Older
1 2 3 4 5 6 7 8 9
# Schema for the configuration files of the search module.

search.settings:
  type: mapping
  label: 'Search settings'
  mapping:
    and_or_limit:
      type: integer
      label: 'AND/OR combination limit'
10
    default_page:
11
      type: string
12
      label: 'Default search page'
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
    index:
      type: mapping
      label: 'Indexing settings'
      mapping:
        cron_limit:
          type: integer
          label: 'Number of items to index per cron run'
        overlap_cjk:
          type: boolean
          label: 'Simple CJK handling'
        minimum_word_size:
          type: integer
          label: 'Minimum word length to index'
        tag_weights:
          type: mapping
          label: 'HTML tags weight'
          mapping:
            h1:
              type: integer
              label: 'Tag h1 weight'
            h2:
              type: integer
              label: 'Tag h2 weight'
            h3:
              type: integer
              label: 'Tag h3 weight'
            h4:
              type: integer
              label: 'Tag h4 weight'
            h5:
              type: integer
              label: 'Tag h5 weight'
            h6:
              type: integer
              label: 'Tag h6 weight'
            u:
              type: integer
              label: 'Tag u weight'
            b:
              type: integer
              label: 'Tag b weight'
            i:
              type: integer
              label: 'Tag i weight'
            strong:
              type: integer
              label: 'Tag strong weight'
            em:
              type: integer
              label: 'Tag em weight'
            a:
              type: integer
              label: 'Tag a weight'
66 67 68
    logging:
      type: boolean
      label: 'Log searches'
69 70

search.page.*:
71
  type: config_entity
72 73
  label: 'Search page'
  mapping:
74 75 76 77 78 79
    id:
      type: string
      label: 'ID'
    label:
      type: label
      label: 'Label'
80 81 82 83 84 85 86 87 88 89 90
    path:
      type: string
      label: 'Search page path'
    weight:
      type: integer
      label: 'Weight'
    plugin:
      type: string
      label: 'Plugin'
    configuration:
      type: search.plugin.[%parent.plugin]