element-hq / element-hq/synapse

Search for URLs in messages doesn't return any results

Open
#3,024 2 comments 1 reaction 0 assignees View on GitHub
A-Message-Search A-Search O-Occasional S-Tolerable T-Defect Z-Help-Wanted
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 6h
Merged PRs (30d)
46

Description

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

---

### Description

Message text search doesn't work with URL. Even if you search for URL exactly as it was in a message, search will not return any results.

### Steps to reproduce

- Post some link in some room, e.g. https://www.youtube.com/watch?v=oHg5SJYRHA0
- Enter the same link in the search box: https://www.youtube.com/watch?v=oHg5SJYRHA0
- Press enter

The search results will not include the message with the link, which is unexpected.

### Version information

- **Homeserver**: self-hosted
- **Version**: matrix-synapse==0.26.0
- **Install method**: pip
- **Platform**: Linux, PostgreSQL 9.6

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.