Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Drush / Rules
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2023 at 11:55 UTC
Updated:
9 Mar 2023 at 22:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyComment #3
meyerrob commentedThat patch solves the divison by null error for me after calling
drush sapi-etThe 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-etdoes not do anything. The call ofdrush sapi-ibuilts 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...Comment #5
drunken monkeyThanks a lot for testing and reporting back, good to hear that this works as intended.
Committed.
Your confusion regarding the
search_api_tasktable 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_itemis 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!
Comment #7
caesius commentedSo, 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:
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...