Search by filename substring does not yield results - need someone to help reproduce
Searching for
m:Chen_Oliver
when a file by the name of 0174_Chen_Oliver_01.jpg
in a read-only gallery doesn't work. However, m:0174_Chen_Oliver_01.jpg
does. Is this intentional?8 Replies
That seems super weird. I think it should work with both. Is this true for all files or just this one file?
only files with this naming convention, it seems
also, searching for
m:0174_
works, but not m:Chen_
However, searching for m:Chen_
returned FC68CFAA-0713-4313-8561-9A231DB7A40B - Oliver Chen.jpeg
i think it's the underscore being treated differentl y
okay the relevant code is here https://github.com/immich-app/immich/blob/acdc66413ca91a15744ee19b3cae839eda5aab12/server/src/immich/api-v1/asset/asset.service.ts#L342
but i'm not sure how it works and whether the filename is even searchedI don't think that code is currently used actually. There is a separate search service that uses typesense
where would i find it, to investigate the problem?
oh there is an entire separate docker container
GitHub
Tokenization around "-" and "_"? · Issue #122 · typesense/typesense
Description One of the fields of my collection is configured as a "string" and contains filenames. But when searching for documents, partial hits within the filenames are not returned at ...
is this as simple as changing https://github.com/immich-app/immich/blob/acdc66413ca91a15744ee19b3cae839eda5aab12/server/src/infra/typesense-schemas/asset.schema.ts#L38 to include spaces, underscores, and hyphens?
Looks like that might fix it, yeah
Space is by default I believe