RocketChat / RocketChat/Rocket.Chat
Search doesn't work for formatted text
Open
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:
- Send
_test_message - Try to search for
test- no results - Try to search for
_test_- found message
Expected behavior:
Found message
Actual behavior:
No results
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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