element-hq / element-hq/synapse

Searching for exact user ids in the user directory fails to match

Open
#3,631 2 comments 1 reaction 0 assignees View on GitHub
z-minor z-p2
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 6h
Merged PRs (30d)
46

Description

This issue has been migrated from [#3631](https://github.com/matrix-org/synapse/issues/3631).

---

### Description

``curl 'https://matrix.half-shot.uk/_matrix/client/r0/user_directory/search?' --data '{"search_term":"@Half-Shot:half-shot.uk"}'``

Results in: ``{
"limited": false,
"results": []
}``

Whereas:

``curl 'https://matrix.half-shot.uk/_matrix/client/r0/user_directory/search?' --data '{"search_term":"@Half-Shot:half-shot"}'``

Comes back with many results, including the one I was after.

### Version information

- **Version**: Synapse/0.33.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.