immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
48.09k stars 2.51k forks source link

"Search people" not working with non-english queries #8951

Closed krin-san closed 5 months ago

krin-san commented 5 months ago

The bug

When filtering a list of "People" on https://BASE_URL/people web page, only special character queries or queries with English characters show results. Queries in a different language or with language-specific characters return no results.

The OS that Immich Server is running on

TrueNAS SCALE

Version of Immich Server

v1.101.0

Version of Immich Mobile App

irrelevant

Platform with the issue

Your docker-compose.yml content

TrueCharts Kubernetes template in https://github.com/truecharts/charts/tree/master/charts/stable/immich

Your .env content

🤷‍♂️

Reproduction steps

1. Name some person "Alex Влад Bülow" (english, cyrillic, german)
2. Search for english letter "A" – found a match
3. Search for cyrillic letter "В" – no matches
4. Search for german umlaut "ü" - no matches

Relevant log output

No response

Additional information

Same steps attempted on the "Merge people" screen work just fine.

martabal commented 5 months ago

I think the issue is not related to non-English characters. The search for people works the same way as the App-Which-Must-Not-Be-Named, by matching the beginning of each word that makes up the name.

krin-san commented 5 months ago

I think the issue is not related to non-English characters. The search for people works the same way as the App-Which-Must-Not-Be-Named, by matching the beginning of each word that makes up the name.

In this case searching for the first letter of a name should match it. It is only partially correct: it matches lowercase letters in beginning of words, but not uppercase letters.
Anyway, this behavior is quite confusing. I would expect it to work the same way as on "Merge people" screen.