Fixed
Project:
Drupal core
Version:
main
Component:
search.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Jan 2026 at 01:38 UTC
Updated:
18 Sep 2026 at 11:36 UTC
Jump to comment: Most recent
Track the steps needed to deprecate extension Search. See Remove a core extension and move it to a contributed project of the deprecation policy.
The removal of extension Search was approved in #3476883: [Policy, no patch] Move Search module to contrib.
The issue to remove Search has an MR and can help find what needs to be changed to deprecate Search. #3586217: Remove the Search module
drupal/search Composer namespace to contrib extension rather than the core extension.
Comments
Comment #2
quietone commentedComment #3
quietone commentedComment #4
quietone commentedThese tests install Search
Comment #5
quietone commentedTalked to catch about about skipping handling the migration tests due to the fact the Migrate Drupal and family is being removed and not ported to contrib and that the migrations in Search are all configuration migrations. We both agreed that it OK in this case. I have updated the issue summary accordingly.
Comment #6
quietone commentedComment #7
quietone commentedComment #9
quietone commentedComment #10
smustgrave commentedJust noting that there is some config in the node module for search.
Comment #11
quietone commentedYes, search is in lots of places. Support for search is in: claro, default_admin, demo_umami, starterkit, and olivero. Also theme.api.php and entity.api.php. And comment module.
Comment #12
quietone commented#3575605: Move tests of search to search module committed
Comment #13
quietone commentedI think these are the config that need to be handled.
Comment #14
kentr commentedOlivero has some libraries related to Search.
Comment #15
quietone commentedComment #16
quietone commentedComment #17
quietone commentedComment #18
quietone commentedComment #19
quietone commentedComment #20
quietone commentedComment #21
quietone commentedComment #22
quietone commentedComment #23
quietone commentedSearch core for usages of the Search module is difficult because 'search' is also used in database code and view for example.
For themes alone there are 321 uses of the word search.
Comment #24
quietone commentedComment #25
quietone commentedComment #26
joachim commentedThere is material on search in various api.php files:
- entity.api.php
- hook_menu_links_discovered_alter sample code
- theme.api.php " * preprocessing functions. For example, the core Search module defines a theme" (and LOADS more)
- node.api.php
- toolbar.api.php
Comment #27
gábor hojtsyComment #28
gábor hojtsy@joachim: opened #3614996: Remove/move/update search mentions in api.php files and looking into it.
Comment #29
quietone commentedThe issue to remove Search has an MR and can help find what needs to be changed to deprecate Search. #3586217: Remove the Search module
Comment #30
quietone commentedComment #31
quietone commentedThe removal issue has test failures #3586217: Remove the Search module that need to be handled. For example, core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php needs the Search module.
Comment #32
quietone commentedOlivero has search blocks, block.block.olivero_search_form_narrow.yml and block.block.olivero_search_form_wide.yml
core/tests/Drupal/KernelTests/Core/Database/SelectExtenderTest.php and core/tests/Drupal/Tests/Core/Database/ConnectionTest.php use \Drupal\search\SearchQuery
Comment #33
quietone commentedThese tests fail because Olilvero has optional config of search blocks
Comment #34
quietone commentedgit grep for search is finding uses in starterkit_theme and in the following
Comment #35
quietone commentedI was just looking for the contrib project and I can't find one. Then I realized that no one has offered to maintain the contrib version, at least not in this issue. That is a big mistake.
Comment #36
xmacinfoI can maintain it if no one picks it up.
Comment #37
quietone commentedComment #38
quietone commented@xmacinfo, thanks. That is great news! The place to start is item 5 in the Remaining Tasks. If you have further questions, asking in #core-development would be best. There are people there who have gone through the process and can assist if needed.
Comment #39
smustgrave commentedDon’t want to be a maintainer but @xmacinfo feel free to ping if you have any questions! Thanks for volunteering
Comment #40
xmacinfoI will start the process today.
Comment #41
xmacinfoThe
searchproject short name is reserved.I opened a ticket in Gitlab infrastructure issue queue.
Comment #42
xmacinfoComment #43
xmacinfoInfrastructure confirms that once we give a module a machine name, we cannot change it afterwards. So a temporary machine name for Search is out of the question.
It may be possible to own the reserved
searchmachine name, but infra highlighted some rough steps to reach that goal. I will need your help assisting infra on this.The other solution is to host the Search code under a new machine name (not the reserved
searchname).In summary:
- We can try to get
searchmachine name, where we may need some additional help in the infra ticket.- We may choose to use another machine name and close the infra issue.
What are your point of view?
Comment #44
quietone commentedWhat I hope is the last issue blocking deprecation has been committed.
Comment #45
catch@xmacinfo can you link to the infra issue you opened? It's not clear to me whether this is a 'normal' level of friction getting the contrib namespace or whether there's an extra problem with search specifically.
Comment #46
quietone commentedComment #47
catchhttps://git.drupalcode.org/project/infrastructure/-/work_items/3606940 is the infra issue via @FeyP
Comment #48
quietone commentedComment #49
quietone commented@xmacinfo, You can now create the contrib version, the project has been created with you as a maintainer, https://www.drupal.org/project/search
Comment #50
xmacinfoComment #51
quietone commentedAdd link to contrib project
Comment #52
quietone commented@xmacinfo, How is it going with making a stable contrib release for search? It is urgent that we have a stable release. Would you like some assistance?
Comment #53
xmacinfo@quietone: Yes, some assistance would be appreciated.
I am currently stuck on a movie set and I will not be able to generate the initial release of Search before four days.
Comment #54
gábor hojtsyI'll try to help you out here in the interest of unblocking core using the steps on https://www.drupal.org/about/core/policies/core-change-policies/how-to-d...
Comment #55
quietone commented@xmacinfo, thanks for letting us know. And to @gábor hojtsy for taking the next steps.
Comment #56
gábor hojtsyInstructions resulted in a somewhat messy repo with most commits with today's date due to the rebase. Figured out a way around it, history now here with proper committers and dates: https://git.drupalcode.org/project/search/-/commits/1.x?ref_type=HEADS
First CI run ran into this naming conflict with core, how is this usually resolved? Does it require a core change?
Comment #57
catch11.4 intentionally replaces drupal/search so that 11.4 sites don't suddenly install the contrib module as soon as there's a release.
However we should remove it from replace in 11.x, probably in the search removal issue, so that sites can install it on 11.5.0 (it's not in main's replace section already).
More details about this in #3616593: Add all modules & themes to the composer replace section
Comment #58
quietone commentedThere is a stable release, which I was able to get using composer, although it is not yet shown on the Search project page.
Thanks everyone for getting this done!!
Comment #60
xmacinfoThank you to everyone who pitched in.
Comment #61
xmacinfoIs there a way to migrate all Search issues to the new Search project?
Comment #62
smustgrave commentedIf the contrib module is not migrated to gitlab yet you can go into the issue and change the project.
If it has I think drumm may be able to help
Comment #63
smustgrave commentedMay have found an interesting bug. I went to the project page and clicked issues and it took me to https://www.drupal.org/project/issues/search which shows me all issues in Drupal.
Comment #64
quietone commented@xmacinfo, I can handle getting the issues moved.
Comment #65
gábor hojtsy@xmacinfo: once the issues are moved to gitlab (which should be soon after they are moved out of core), the bug with d.o integration will not be relevant anymore :)
Comment #66
xmacinfoCross-posted!
@quietone Please do. Does the process involves migrating the Search issues to Gitlab?
I confirm seeing the issues when clicking, while the project pages issues count is “0”.
Comment #67
quietone commentedThe infrastructure team in not migrating any extension that has the same namespace as a core module. This means the contrib Search project is on d.o and I can triage the queue and move issues as we have always done. Once that is complete you should be able to coordinate with the infrastructure team to have the project migrated to GitLab. One way to know if the issues are moved is to follow the removal meta issue, #3565783: [meta] Tasks to remove the Search module. Moving issues and documentation is part of that issue.