element-hq / element-hq/synapse

Room Directory Search should use Text Search on Postgres

Open
#5,747 0 comments 0 reactions 0 assignees View on GitHub
A-Room-Directory T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

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

---

The room directory search uses substring-in-string for search whereas [text search](https://www.postgresql.org/docs/9.6/textsearch-controls.html) (which will do scoring against actual English* words, and can prioritise matches in the room name vs the topic) might be a good fit here.

The user directory already uses it (even though usernames don't benefit from it as much as rooms would, since on my homeserver at least, it just seems to index the user-part and the domain-part of the user ID and the words from the display name.)

This issue should follow on from #4043.

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.