RocketChat / RocketChat/Rocket.Chat

Searching doesn't show all requested users

Open
#14,145 6 comments 5 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:

"Search" results in user panel are bugged. Total random results. Not showing all users from requested patterns (for example searching users with same surname, name, department in name).

Moreover same search request from different rocket user, gives totally different search results but also totally random, not complete.

Steps to reproduce:
  1. Go to "Search"
  2. Write your search request (username/name/first 3. characters etc)
  3. Get bugged, random results.
Expected behavior:

Searching should work well :)

Actual behavior:

Searching doesn't work well :(

Server Setup Information:
  • Version of Rocket.Chat Server: 1.0.0-rc.2
  • Operating System: debian 9
  • Deployment Method: tar
  • Number of Running Instances: 2
  • DB Replicaset Oplog: on
  • NodeJS Version: v8.15.0
  • MongoDB Version: v4.0.5

EXAMPLE:

  • screen below showing search results (only 9. hits):
    grf1

  • screen below showing what SHOULD be my results (all 24. users with this pattern in name):
    grf2

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

No source file, test, or entry point is named in the report. Start by reproducing the user-panel search with matching names on the stated two-instance setup, then locate the search implementation and its tests; done means all matching users are returned consistently.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.