matrix-org / matrix-static

A static golang generated preview of public world readable Matrix rooms.
http://view.matrix.org/
Apache License 2.0
87 stars 25 forks source link

Search a rooms content #111

Open Miepee opened 2 years ago

Miepee commented 2 years ago

Is your feature request related to a problem? Please describe. Sometimes I want to get to a specific point in time via some sentences I can remember were said back then.

Describe the solution you'd like Implement a search feature, so one can jump to specific points in time/discussions more easily.

t3chguy commented 2 years ago

Unfortunately this isn't really feasible as to search a room the user must be in the room. matrix-static specifically does not join rooms and only peeks them, so to enable this it'd need to download and sync all history for all public rooms to make them searchable which would be far outside the scope of this project which stores nothing

Miepee commented 2 years ago

Oh, so everytime I visit a room via a hosted matrix-static instance, it is fetching the data from the rooms?

t3chguy commented 2 years ago

It holds a cache for the recently visited rooms to speed things up, but otherwise uses the peeking API

Miepee commented 2 years ago

So in order for this to get ever implemented, an MSC would have to be made to allow searching in public rooms without joining them.

t3chguy commented 2 years ago

Most likely yes