diff --git a/invokeai/app/services/image_records/image_records_sqlite.py b/invokeai/app/services/image_records/image_records_sqlite.py index 0600025650..87b1b48d19 100644 --- a/invokeai/app/services/image_records/image_records_sqlite.py +++ b/invokeai/app/services/image_records/image_records_sqlite.py @@ -215,7 +215,7 @@ class SqliteImageRecordStorage(ImageRecordStorageBase): # Search term condition if search_term: query_conditions += """--sql - AND json_extract(images.metadata, '$') LIKE ? + AND images.metadata LIKE ? """ query_params.append(f"%{search_term}%")