Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mlv on
Dear Drupal Community,
I’m experiencing an odd problem and it is totally possible that I am missing something trivial, but I’m stuck (and searched thoroughly) and would appreciate any nudge in the right direction:
I’m using the default core search and don’t get any search results.
- The website is indexed 100%, there are 0 items left to index.
- The search index table is filled.
- Active search modules are „Node“ and „File Entity“, „Node“ is set as „Standard“
- Cron ran.
- Caches are cleared.
- Permissions are set for guests and authenticated users (every role is allowed to use search)
- Error log does not show any errors, only the default notice, that someone searched for a keyword.
- The database user has all privileges including CREATE TEMPORARY TABLE (GRANT ALL PRIVILEGES…).
- I already deactivated and uninstalled the search module, ran cron, cleared the cache, reactivated everything, configured everything and the website is — again — indexed completely.
- I tried the „Custom Search“-Module with the same result.
- Status report does nor show any errors or problems.
- Website is not in maintenance mode…
- Neither files nor node search get any results…
- …and yes, the website actually has lots of content :D
Drupal Core: 7.41
I never experienced any problems with the search function and I host a couple of websites with the same provider, using the same drupal core version, where search functions as desired — what the heck am I missing? I’m at a total loss.
Comments
search_total
Ah, I was looking at the wrong place: Turns out, the problem is rooted in search_total, which got me on the right track:
#19887: search_total not being completely built
and
#2628888: Strangest bug with search_update_totals not updating indexed words
and ultimately:
#2603578: _features_set_export_language is clearing drupal static cache too aggressively breaking search and possible many other modules
Phew!