RocketChat / RocketChat/Rocket.Chat
Prioritize spotlight results by first matched fields
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Searching for b (or other chars or also combinations) returns results that do not contain the search query (at least not in the channel/username). This may have been the case in earlier versions - I haven't checked whether this was introduced in 0.62.0-rc.0.
Server Setup Information:
- Version of Rocket.Chat Server: 0.62.0-rc.0
- Operating System: Oracle Linux 7
- Deployment Method(snap/docker/tar/etc): tar
- Number of Running Instances: 1
- DB Replicaset Oplog: -
- Node Version: 8.9.4
Steps to Reproduce:
- search for letter
b
Expected behavior:
- Only channel names / users containing a
bin their name should appear
Actual behavior:
- Accounts like
adminget returned.

Relevant logs:
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 searching for b in Rocket.Chat 0.62.0-rc.0, then trace the channel and user search entry points responsible for the returned results. Done means results are limited to channel names or usernames containing the query, including for combined search characters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100