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
jrasm91
jrasm912y ago
That seems super weird. I think it should work with both. Is this true for all files or just this one file?
olives ❀
olives ❀OP2y ago
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 searched
jrasm91
jrasm912y ago
I don't think that code is currently used actually. There is a separate search service that uses typesense
olives ❀
olives ❀OP2y ago
where would i find it, to investigate the problem? oh there is an entire separate docker container
olives ❀
olives ❀OP2y ago
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 ...
jrasm91
jrasm912y ago
Looks like that might fix it, yeah Space is by default I believe

Did you find this page helpful?