RocketChat / RocketChat/Rocket.Chat

Prioritize spotlight results by first matched fields

Open
#9,809 7 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:

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 b in their name should appear
Actual behavior:
  • Accounts like admin get returned.

screenshot from 2018-02-21 13 16 48

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.