Same filename and directory in other branches
  1. 8.9.x core/modules/search/config/schema/search.schema.yml
  2. 9 core/modules/search/config/schema/search.schema.yml
core/modules/search/config/schema/search.schema.yml

File

core/modules/search/config/schema/search.schema.yml
View source
  1. # Schema for the configuration files of the search module.
  2. search.settings:
  3. type: config_object
  4. label: 'Search settings'
  5. constraints:
  6. FullyValidatable: ~
  7. mapping:
  8. and_or_limit:
  9. type: integer
  10. label: 'AND/OR combination limit'
  11. constraints:
  12. Range:
  13. min: 0
  14. default_page:
  15. type: string
  16. label: 'Default search page'
  17. constraints:
  18. ConfigExists:
  19. prefix: search.page.
  20. # @see \Drupal\search\SearchPageRepository::getDefaultSearchPage()
  21. # @see \Drupal\search\SearchPageRepository::clearDefaultSearchPage()
  22. requiredKey: false
  23. index:
  24. type: mapping
  25. label: 'Indexing settings'
  26. mapping:
  27. cron_limit:
  28. type: integer
  29. label: 'Number of items to index per cron run'
  30. constraints:
  31. Range:
  32. min: 1
  33. overlap_cjk:
  34. type: boolean
  35. label: 'Simple CJK handling'
  36. minimum_word_size:
  37. type: integer
  38. label: 'Minimum word length to index'
  39. constraints:
  40. Range:
  41. min: 1
  42. tag_weights:
  43. type: mapping
  44. label: 'HTML tags weight'
  45. mapping:
  46. h1:
  47. type: weight
  48. label: 'Tag h1 weight'
  49. h2:
  50. type: weight
  51. label: 'Tag h2 weight'
  52. h3:
  53. type: weight
  54. label: 'Tag h3 weight'
  55. h4:
  56. type: weight
  57. label: 'Tag h4 weight'
  58. h5:
  59. type: weight
  60. label: 'Tag h5 weight'
  61. h6:
  62. type: weight
  63. label: 'Tag h6 weight'
  64. u:
  65. type: weight
  66. label: 'Tag u weight'
  67. b:
  68. type: weight
  69. label: 'Tag b weight'
  70. i:
  71. type: weight
  72. label: 'Tag i weight'
  73. strong:
  74. type: weight
  75. label: 'Tag strong weight'
  76. em:
  77. type: weight
  78. label: 'Tag em weight'
  79. a:
  80. type: weight
  81. label: 'Tag a weight'
  82. logging:
  83. type: boolean
  84. label: 'Log searches'
  85. search.page.*:
  86. type: config_entity
  87. label: 'Search page'
  88. mapping:
  89. id:
  90. type: machine_name
  91. label: 'ID'
  92. label:
  93. type: required_label
  94. label: 'Label'
  95. path:
  96. type: string
  97. label: 'Search page path'
  98. weight:
  99. type: weight
  100. label: 'Weight'
  101. plugin:
  102. type: string
  103. label: 'Plugin'
  104. constraints:
  105. PluginExists:
  106. manager: plugin.manager.search
  107. interface: 'Drupal\search\Plugin\SearchInterface'
  108. configuration:
  109. type: search.plugin.[%parent.plugin]
  110. block.settings.search_form_block:
  111. type: block_settings
  112. label: 'Search block'
  113. mapping:
  114. page_id:
  115. type: string
  116. label: 'Search page'