element-hq / element-hq/synapse
Room Directory Search should use Text Search on Postgres
- 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
Assessment
This issue has not been assessed yet.