- Issue created by @drunken monkey
- 🇩🇪Germany meyerrob
That patch solves the divison by null error for me after calling
drush sapi-et
The question is: Why is the number of tasks 0?
The table search_api_task is always empty, even after I cleared the index with
drush sapi-c
- and there should be at least one task to do after that ("indexing"). As there ist no entry in search_api_task the commanddrush sapi-et
does not do anything. The call ofdrush sapi-i
builts the index correctly.Therefore it seems as if the entry in search_api_task is not properly filled, but right now I am running out of debugging time. I stumbled over this topic through another issue - normally I use the GUI to reindex my search index which works perfectly. Therefore maybe I just misunderstood the
drush sapi-et
... -
drunken monkey →
committed d44c1b6c on 7.x-1.x
Issue #3339336 by drunken monkey, meyerrob: Fixed Drush bug when...
-
drunken monkey →
committed d44c1b6c on 7.x-1.x
- Status changed to Fixed
about 2 years ago 8:44am 18 February 2023 - 🇦🇹Austria drunken monkey Vienna, Austria
Thanks a lot for testing and reporting back, good to hear that this works as intended.
Committed.Your confusion regarding the
search_api_task
table seems to come from a misunderstanding about that table’s contents. It doesn’t pertain at all to items that need to be indexed – that’s whatsearch_api_item
is for. “Tasks”, in the Search API, refer to changes that still need to be executed. I now added a more detailed explanation to Glossary doc page → – please comment there in case this is unclear, or you have suggestions regarding the phrasing to make it easier to understand. (Or, of course, feel free to edit it right away.)Anyways, thanks again!
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
almost 2 years ago 10:31pm 9 March 2023 - 🇺🇸United States caesius
So, a few things:
1. The 7.x-1.x-dev version of the module listed on the project page was built 5 March 2022 even though the commit log shows 4 commits since then. https://git.drupalcode.org/project/search_api/-/commits/7.x-1.x
2. Git cloning the project and plopping it onto a site completely breaks Drush with this error:
$ ddev drush updb -y PHP Fatal error: Uncaught Error: Class "view" not found in /var/www/html/web/sites/all/modules/contrib/search_api/search_api.drush.inc:731
It seems the commit for this issue added a bunch of unrelated code for a view? It wasn't in the patch in #2. https://git.drupalcode.org/project/search_api/-/commit/d44c1b6cd8813ab39...