tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

[Feature Request] Implement search chat locally

Open wangqr opened this issue 4 years ago • 16 comments

Is your feature request related to a problem?

Telegram's server side search is word-based and is literally unusable for any non-space-separated language, including most asian languages. See #564, this issue has been 6 years and related issues (#1562, #1834, #6792, #7096, #7098) are keep getting closed without any fix. People are forced to use non-official clients or export chat history just to search a message. It seems that there is no hope telegram fix their broken server API, so local search is a great solution.

Describe the solution you'd like

Add a switch to allow user store chat history locally, and implement search within all locally stored chat history using substring match.

Describe alternatives you've considered

Implement search within all locally loaded/cached chat history using substring match, then provide a "load more" button to search older messages by loading them from server.

wangqr avatar Mar 04 '21 18:03 wangqr

+1 to improvement of current search - it has very low usability. Below I list the problems. [edited after first emotional message, sorry]

WrongBit avatar Mar 05 '21 08:03 WrongBit

just search for text in this ONE specific chat/channel

You can do that too. There's a search icon in the chat header, or simply use CTRL+F

you definitely "invent" features your own (strange) way instead of listening REAL USERS.

This sounds a bit pretentious

RememberTheAir avatar Mar 05 '21 08:03 RememberTheAir

@RememberTheAir : ah, got it!! I got why UI is confused me - because of poor usability. Telegram shows me search box for ONE channel in the same place as global one! :-1: This confuses me to think that search is global. Obvious complain is: do search for one channel in a separate text box (in right top corner of the channel/chat).

And problem with search still exist: it's clumsy. Instead of local search (and highlight of found substring like any editor does), it searches on the server and it does "estimate" search - meaning search for "nike" also shows me "niko" - sorry, but I didn't asked for "all imaginable words, looking like nike". Result of search also presented in the most inconvenient way - list of shortcuts on the left and when you click it, you see tons of text - where is my substring??

Yes, I'm declaring that "search" in Telegram has very strange implementation. IT already has sustained practice for text search (regexp, case sensitivity, whole word, highlight, etc), but Telegram come across this experience. Sorry if I sound "pretentious" - that message was after I was irritated by Telegram team who ignores important requests. Of course you do what you can, but hell... IT professional IS the guy who must be able to split requests by importance and see how feature is "global" or "needed every day" - it's not about "likes" at all. Good luck!

WrongBit avatar Mar 05 '21 09:03 WrongBit

@WrongBit Local searching like in text editor will work unreliably while searching for only the small loaded part of the chat (it will find or not find the same thing depending on whether the part of the chat was loaded) and it can't work for the whole chat because it could be done only on server. A single chat may have tens or even hundreds of thousands of messages.

john-preston avatar Mar 05 '21 09:03 john-preston

@john-preston : agree with you related volume, but we are DEVELOPERS - that's why we cannot say "it's impossible". We must find the best way to do. As a proposal:

  1. User press Ctrl+F, search text box appears in RIGHT TOP side of channel. Box offers at least "search whole word" option.
  2. Local history of this channel is searched, leaving on screen only messages with found substring (substring is highlighted).
  3. When you click on message, it's shown in the center with surrounding messages - local context (ideally with highlighted substring in center message).
  4. If you decide it's wrong message, there is button "back to results" and again you show messages as in (2).
  5. Additionally search box offers button: "search a full histiory" (despite amount of results). Then you do search on server and load only messages with substring and present as in item (2).

It can be not ideal scenario, but in general it looks way more useful than what we have now. Hope my proposal helps.

WrongBit avatar Mar 05 '21 09:03 WrongBit

It seems to be more than a bug than a feature request. I hardly know any program/service that search only for whole words.

TheNicker avatar Jul 01 '21 15:07 TheNicker

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Dec 28 '21 17:12 stale[bot]

We therefore assume that the user has lost interest or resolved the problem on their own.

Nope, nope nope. Dozens of Millions of users around the world need this feature.

Currently the server side Search feature is virtually useless. The mind usually remember fragments of information and not text and conversations as is, otherwise search would be useless in the first place.

In terms of human-machine interaction that's a bad functional design, probably a tradeoff for resources, I assume. It is the only Telegram issue that really bothers me since its conception. sometimes I waste so much time just to find something.

TheNicker avatar Dec 28 '21 18:12 TheNicker

It seems Telega developers don't give a hell about us. They just wait until request become "outdated" instead of immediately take it into development. Pity that Pavel Durov assembled so pathetic, useless, incompetent team! I won't regret if clumsy messenger will die - it's logical result of TEAM IGNORANCE.

WrongBit avatar Dec 29 '21 01:12 WrongBit

@WrongBit Amen.

john-preston avatar Dec 29 '21 10:12 john-preston

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Jun 27 '22 23:06 stale[bot]

Stop autoclosing issues! YOU HAVE TO FIX IT, not close! We still need this feature, why nobody assigned to it?? TOO BUSY WITH EMOJI?

LexaGV avatar Jun 28 '22 00:06 LexaGV

Keep alive

TheNicker avatar Jun 28 '22 04:06 TheNicker

I'm okay to subscribe to premium for this feature.

themikesam avatar Sep 22 '22 14:09 themikesam

Please Fix this

xcpky avatar Oct 28 '23 01:10 xcpky

I need this feature. Search is not usable.

GagaMaga600 avatar May 29 '25 14:05 GagaMaga600