RocketChat / RocketChat/Rocket.Chat

Search Function Not Displaying Messages with Attached Images

Open
#31,156 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug type: improvement
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Hello, I noticed a potential bug within the RocketChat platform, where messages, while having a certain keyword, are not being shown in the search results if there is an image attached. This behavior is observed both on the RocketChat Server v6.4.6, v6.5.0 the RocketChat Electron Client v3.9.9, and also when accessed through a web browser.

Steps to reproduce:
  1. Go into any group chat on RocketChat.
  2. Post a message with a particular keyword and attach an image to the message.
  3. Use the search bar to look for that particular keyword.
  4. Notice that the message with the attached image does not appear in the search results, even though it contains the searched keyword.
Expected behavior:

The message with the keyword and the attached image should appear in the search results.

Actual behavior:

Messages with attached images are not showing up in the keyword search results.

Server Setup Information:
  • Version of Rocket.Chat Server: 6.4.6, 6.5.0
  • Operating System: Linux
  • Deployment Method: docker
Client Setup Information
  • Desktop App or Browser Version: RocketChat.Electron: 3.9.9, Google Chrome: 119
  • Operating System: Windows 10
Additional context

This issue is causing difficulties finding important messages embedded with images. Any help regarding this discrepancy would be deeply appreciated.

Screenshots

screen1
screen3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are mentioned. Reproduce the search with a keyword-bearing message that has an attached image, then trace the search handling for messages and attachments; the issue is done when such messages appear in keyword results across the reported client paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.