Closed installlooc closed 8 months ago
v1.95.1 here, unable to replicate. Out of curiosity what happens on mobile? Mobile still uses the old search platform.
Identical results on mobile as well, nothing obvious in logs for any of the containers either
If you revert back to 1.95, does it work?
Yes, reverting to 1.95.0 restores the functionality
Can you tell me more about your instance, how many users do you have? How many assets do you have?
THe things we fixed in 1.95.1 is to not return archived assets by default
Single user with around 22000 photos, both archive and trash are empty. I can still see all the images through the default timeline and through albums, just not through search.
Same issue here, the search works as expected after running Smart Search Job, but returns to one result shortly after. The metadata search works regardless.
I have the same issue, running Immich from a Synology NAS. Rerunning all Smart Search helps temporarily, but after the job is done I only see 1 photo, regardless of the keyword used.
Problem persists between 1.95.0 and 1.95.1, between different clip models, machine learning hosts, and after reinstalling the containers.
Can you guys try run the Smart Search job for all and see if it fixes the issue?
A full (or partial) re-run restores the search, but only for a few minutes for me. Curiously, the 1 photo changes after each re-run.
I'm unable to reproduce this issue. To see if it has any relation to the archive change, can you try setting the Archive toggle when searching? Next, can you change the isArchived
text in the URL to withArchived
and enter?
The issue still persists for me after checking the 2 archives option (I don't have any photo archived also). For me it looks like the model results are wiped off every 4-5 minutes after finishing/pausing a smart search job, leaving only 1 photo to search for.
I created another user and upload some photos to test. Search works ok in the alt account, but when I toggle show photo from the main account in timeline, the issue kicks in again. Disabling it restores search in alt account.
Edit: I am not able to replicate the bug in my alt account (using a dummy external library load). Alternatively, adding more direct upload or more external libraries does not fix the main account
Also experienced the single search result on 1.95.1. Downgraded to 1.95.0 but left database at (image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0) at v0.2.0 and re-ran SYNC ALL.
Results are a full return of search as expected and previously experienced.
Also experienced the single search result on 1.95.1. Downgraded to 1.95.0 but left database at (image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0) at v0.2.0 and re-ran SYNC ALL.
Results are a full return of search as expected and previously experienced.
Take it back - I also am losing the search results after about 5 min without doing anything else. Had them (search "red car" returned many results) and now "red car" returns one result (and it is a picture of a printed circuit board without any red at all). So that is on 1.95.0 and v0.2.0 on pgvecto.
I think this might be a pgvecto.rs bug in that case. Out of curiosity, can you try running VACUUM FULL smart_search;
?
I think this might be a pgvecto.rs bug in that case. Out of curiosity, can you try running
VACUUM FULL smart_search;
?
EDIT: This resolved the issue for me. Leaving behind the steps I took for others:
This worked for me as well. Docker Compose:
sudo docker exec -it immich_postgres bash
(assuming you used defaults)I can confirm the VACUUM FULL smart_search
has restored the search in 1.95.1 for me as well
Based on this, I was able to reproduce the issue. It happens in two cases:
DELETE FROM smart_search
without vacuuming and re-run smart searchThe index ends up still having the entries from before the table was cleared / updated, so a full table's worth of duplicates wreaks havoc on it.
The first case is easy enough to fix in code. If the second applies to you, then running VACUUM FULL smart_search
and VACUUM FULL asset_faces
will take care of it.
The bug
When attempting to search for any details, either using the simple search box or the advanced search box, only a single result is returned.
This appears to be a regression from 1.95.0, which was working fine before I updated to 1.95.1
The OS that Immich Server is running on
Ubuntu 22.04.3 (Portainer)
Version of Immich Server
v1.95.1
Version of Immich Mobile App
v1.95.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response