RocketChat / RocketChat/Rocket.Chat

It's can't search file path.

Open
#19,227 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

When I want to search for a conversation, it’s okay to find general text, but if the content of the conversation is a file path, it will not be found. I have enabled "message always search regexp", but if I don’t enable this function, I won’t be able to find keywords.

Steps to reproduce:
  1. Click search message
  2. Type I want search the file path
  3. It's not found.
Expected behavior:

It's should found it.

Actual behavior:

圖片
圖片
圖片

Server Setup Information:
  • Version of Rocket.Chat Server: 3.7.1
  • Operating System: Debian 9
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enable
  • NodeJS Version: v12.16.0
  • MongoDB Version: 4.0.20
Client Setup Information
  • Desktop App or Browser Version: 3.0.2
  • Operating System: Win10
Additional context
Relevant logs:

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

Reproduce the issue through message search using a conversation containing a file path, with and without the “message always search regexp” setting enabled. Trace the search behavior in the TypeScript code and MongoDB-backed search path; done means file paths and keywords are found without enabling the regexp setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, 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.