element-desktop icon indicating copy to clipboard operation
element-desktop copied to clipboard

Search always shows "no results" for unencrypted and encrypted rooms

Open FredLiu0512 opened this issue 3 years ago • 4 comments

Unable to search for messages, each search message shows no results. Neither encrypted nor unencrypted rooms can be searched.

Many issues about this topic have been reported many times in sector-im / element-web. But I cannot find any solution to this because the searching feature still can't work properly.

I wonder if there is already a solution or it is still being working out since some issues closed a few years ago.

Take a look at the screenshot below: It says that "Not currently indexing messages for any room." But how could I make it available?

截屏2023-01-16 06 35 24 截屏2023-01-16 06 44 02 截屏2023-01-16 06 44 14
  • OS:macOS 13.1
  • Version 1.11.17

FredLiu0512 avatar Jan 15 '23 22:01 FredLiu0512

This got moved into the correct repository but this means you didn't get the form, so this report doesn't have the info we'd need to investigate. It might be easier to close this and open another bug.

dbkr avatar Jan 16 '23 15:01 dbkr

Exact same issue (Message Search preferences look the same). Happens in newly created room, happens after %appdata%\Element has been cleared. Have never seen search in encrypted rooms working, no error just no results. Version: 1.11.18 (Edit: Windows 10 22H2) But as I said, this never worked on previous Versions either so first I assumed this feature is just not implemented.

schuhj avatar Jan 24 '23 14:01 schuhj

Just learned some new Info on this: It only occurs for us if folder redirection for AppData/Roaming is enabled for the Account. In this case $env:APPDATA\Element points at \\dfs\<user-specific-path>\Element on a network drive. Other features fo Element seem to be unaffected by this (as long as the network connection is stable).

Would be nice if search relevant files or even the whole application data path could (optionally) be stored in $env:LOCALAPPDATA Something like app.setPath('userData', process.env.localappdata+"/Element"); at the appropriate scope, if for example, an environment variable indicates that preference.

schuhj avatar Dec 05 '23 16:12 schuhj