RocketChat / RocketChat/Rocket.Chat

Search doesn't work for formatted text

Open
#10,279 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

For example, if I send a message _test_, then I cannot find it in channel using test search query, but I can find it using _test_. Shouldn't formatting be ignored?

Server Setup Information:
  • Version of Rocket.Chat Server: 0.62.2
  • Operating System: Ubuntu 16.04.4 LTS
  • Deployment Method(snap/docker/tar/etc): snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • Node Version: v8.8.1
  • mongoDB Version: -
Steps to Reproduce:
  1. Send _test_ message
  2. Try to search for test - no results
  3. Try to search for _test_ - found message
Expected behavior:

Found message

Actual behavior:

No results

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 by sending _test_ and searching for both test and _test_ in the Rocket.Chat server described. Trace the search entry point and how formatted message text is indexed or queried; done means a plain-text search for test returns the formatted message while the existing _test_ search still works.

Written by the indexing model from the issue text.

Assessment

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