search.schema.yml

Same filename and directory in other branches
  1. 11.x core/modules/search/config/schema/search.schema.yml
  2. 10 core/modules/search/config/schema/search.schema.yml
  3. 9 core/modules/search/config/schema/search.schema.yml
  4. 8.9.x 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. PositiveOrZero: ~
  13. default_page:
  14. type: string
  15. label: 'Default search page'
  16. constraints:
  17. ConfigExists:
  18. prefix: search.page.
  19. # @see \Drupal\search\SearchPageRepository::getDefaultSearchPage()
  20. # @see \Drupal\search\SearchPageRepository::clearDefaultSearchPage()
  21. requiredKey: false
  22. index:
  23. type: mapping
  24. label: 'Indexing settings'
  25. mapping:
  26. cron_limit:
  27. type: integer
  28. label: 'Number of items to index per cron run'
  29. constraints:
  30. Range:
  31. min: 1
  32. overlap_cjk:
  33. type: boolean
  34. label: 'Simple CJK handling'
  35. minimum_word_size:
  36. type: integer
  37. label: 'Minimum word length to index'
  38. constraints:
  39. Range:
  40. min: 1
  41. tag_weights:
  42. type: mapping
  43. label: 'HTML tags weight'
  44. mapping:
  45. h1:
  46. type: weight
  47. label: 'Tag h1 weight'
  48. h2:
  49. type: weight
  50. label: 'Tag h2 weight'
  51. h3:
  52. type: weight
  53. label: 'Tag h3 weight'
  54. h4:
  55. type: weight
  56. label: 'Tag h4 weight'
  57. h5:
  58. type: weight
  59. label: 'Tag h5 weight'
  60. h6:
  61. type: weight
  62. label: 'Tag h6 weight'
  63. u:
  64. type: weight
  65. label: 'Tag u weight'
  66. b:
  67. type: weight
  68. label: 'Tag b weight'
  69. i:
  70. type: weight
  71. label: 'Tag i weight'
  72. strong:
  73. type: weight
  74. label: 'Tag strong weight'
  75. em:
  76. type: weight
  77. label: 'Tag em weight'
  78. a:
  79. type: weight
  80. label: 'Tag a weight'
  81. logging:
  82. type: boolean
  83. label: 'Log searches'
  84. search.page.*:
  85. type: config_entity
  86. label: 'Search page'
  87. constraints:
  88. FullyValidatable: ~
  89. mapping:
  90. id:
  91. type: machine_name
  92. label: 'ID'
  93. label:
  94. type: required_label
  95. label: 'Label'
  96. path:
  97. type: path
  98. label: 'Search page path'
  99. constraints:
  100. NotBlank: []
  101. weight:
  102. type: weight
  103. label: 'Weight'
  104. plugin:
  105. type: string
  106. label: 'Plugin'
  107. constraints:
  108. PluginExists:
  109. manager: plugin.manager.search
  110. interface: 'Drupal\search\Plugin\SearchInterface'
  111. configuration:
  112. type: search.plugin.[%parent.plugin]
  113. block.settings.search_form_block:
  114. type: block_settings
  115. label: 'Search block'
  116. constraints:
  117. FullyValidatable: ~
  118. mapping:
  119. page_id:
  120. type: string
  121. label: 'Search page'
  122. # Optional: falls back to the default search page.
  123. # @see \Drupal\search\Form\SearchBlockForm::buildForm()
  124. # @see \Drupal\search\SearchPageRepositoryInterface::getDefaultSearchPage()
  125. nullable: true
  126. constraints:
  127. ConfigExists:
  128. prefix: search.page.

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