RocketChat / RocketChat/Rocket.Chat
Searching doesn't show all requested users
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:
- Go to "Search"
- Write your search request (username/name/first 3. characters etc)
- 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):

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

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