Skip to content

Search: re-index older messages after a person or chat is renamed #93

Closed

Description

@neoromantic

The search index's sender and chat columns hold names (username, first and last name, chat title) taken from users_cache and chats_cache when the message was written. When a person or a chat is renamed, older messages keep the old names in the index, so a search by the new name (sender:newname, chat:"New title") misses them. Since #87, re-fetching a message no longer refreshes them as a side effect.

Proposed: when a users_cache or chats_cache row changes a name that the index uses, queue a re-index of that sender's or chat's messages, done in batches in the background (#89). The daemon writes only to the cache, so it stays read-only towards Telegram.

Done when an e2e test renames a made-up user and a chat and finds their older messages by the new names, and docs/search.md describes when names refresh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions