Active
Project:
SQLite VDB Provider
Version:
1.1.x-dev
Component:
User interface
Priority:
Normal
Category:
Plan
Assigned:
Reporter:
Created:
5 Oct 2025 at 19:35 UTC
Updated:
11 Feb 2026 at 18:55 UTC
Jump to comment: Most recent
After setting up the data source and index, when I try to index the content I get this error:
Drupal\ai_vdb_provider_sqlite\Exception\QuerySearchException: no such table: ai in Drupal\ai_vdb_provider_sqlite\SQLiteVectorClient->querySearch() (line 299 of src/SQLiteVectorClient.php).
FYI this is with ddev v1.24.8 running PHP 8.3.
Set up the vdb directory.
Create the server and index, named "ai".
Try indexing content.
TBD
TBD
TBD
TBD
TBD
Comments
Comment #2
damienmckennaComment #3
damienmckennaTurns out there were earlier errors related to the sqlite extension not loading correctly. I'll report back, but it seems like not a problem with the module.
Comment #5
damienmckennaThe error still happens once I made sure the extension could load.
Comment #6
damienmckennaAt what point is it supposed to create the table? I see SQLiteVectorClient::createCollection() where it has this code:
I added a breakpoint there but it doesn't get triggered when editing the index or indexing the content.
Comment #7
damienmckennaWhen saving the index would it be useful to check the index table exists, and if not to create it?
Comment #8
damienmckennaI worked out the sequence if events - if the sqlite extension is working correctly when the configuration is first created it then doesn't try to recreate it during any other steps (indexing, etc). To fix the problem I first got the sqlite extension working ;-) then I deleted the index in Search API then re-imported the configuration, it then was able to connect to the database file and created the necessary table.
It might be worth adding some extra checks to verify the index is working correctly, e.g. it should show on admin/config/search/search-api/index/INDEXNAME whether the index can be connected to.
Comment #9
jimyhuang commentedThanks for your suggestion. I may implement this for the future version.