New answers tagged

0 votes

Is there a way to default sort by date when no search keywords have been used, but default sort by relevance for all searches?

I have almost the same use case. I tried your approach but unfortunately it didn't work for me. After two days of research, I got a working version. The key is SearchApiQuery::getSort() where you can ...
John Doe's user avatar
0 votes

How to re-index all content for the core search engine?

If for some reason running cron is not actually re-indexing it can be called directly: drush ev "search_cron();" Or maybe just run: for (( c=1; c<=10; c++ )); do drush ev "...
Felix Eve's user avatar
  • 6,453
1 vote
Accepted

Admin Search Report Data

A quick look at the codebase shows that this route is provided in core/modules/dblog/dblog.routing.yml. The route is controlled by \Drupal\dblog\Controller\DbLogController::topLogMessages with type ...
cilefen's user avatar
  • 5,967

Top 50 recent answers are included