Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search highlights are always empty for SQLite #16999

Closed
mlaily opened this issue Mar 17, 2024 · 0 comments · Fixed by #17000
Closed

Search highlights are always empty for SQLite #16999

mlaily opened this issue Mar 17, 2024 · 0 comments · Fixed by #17000

Comments

@mlaily
Copy link
Contributor

mlaily commented Mar 17, 2024

Description

When doing a full text search query in one or multiple rooms, the highlights property returned in the response is always empty when using the SQLite database.

This is more of a missing implementation than a bug since this behavior looks intentional

if isinstance(self.database_engine, PostgresEngine):

I'm filing it as a bug anyway because this unfortunately breaks the search feature on the Element Android app at least. element-hq/element-android#8729

Steps to reproduce

Run any full text search on a homeserver using SQLite

Homeserver

any homeserver using SQLite

Synapse Version

all versions (still present in the latest 1.102)

Installation Method

Docker (matrixdotorg/synapse)

Database

SQLite

Workers

Single process

Platform

Any

Configuration

No response

Relevant log output

N/A

Anything else that would be useful to know?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant