search.schema.yml

Same filename in other branches
  1. 9 core/modules/search/config/schema/search.schema.yml
  2. 8.9.x core/modules/search/config/schema/search.schema.yml
  3. 10 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. constraints:
  89. FullyValidatable: ~
  90. mapping:
  91. id:
  92. type: machine_name
  93. label: 'ID'
  94. label:
  95. type: required_label
  96. label: 'Label'
  97. path:
  98. type: path
  99. label: 'Search page path'
  100. constraints:
  101. NotBlank: []
  102. weight:
  103. type: weight
  104. label: 'Weight'
  105. plugin:
  106. type: string
  107. label: 'Plugin'
  108. constraints:
  109. PluginExists:
  110. manager: plugin.manager.search
  111. interface: 'Drupal\search\Plugin\SearchInterface'
  112. configuration:
  113. type: search.plugin.[%parent.plugin]
  114. block.settings.search_form_block:
  115. type: block_settings
  116. label: 'Search block'
  117. constraints:
  118. FullyValidatable: ~
  119. mapping:
  120. page_id:
  121. type: string
  122. label: 'Search page'
  123. # Optional: falls back to the default search page.
  124. # @see \Drupal\search\Form\SearchBlockForm::buildForm()
  125. # @see \Drupal\search\SearchPageRepositoryInterface::getDefaultSearchPage()
  126. nullable: true
  127. constraints:
  128. ConfigExists:
  129. prefix: search.page.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.