fix pgroona note.text query

This commit is contained in:
Hazelnoot 2025-02-12 11:01:26 -05:00
parent feb80ee992
commit fb058410f6

View file

@ -225,7 +225,7 @@ export class SearchService {
.leftJoinAndSelect('renote.user', 'renoteUser');
if (this.config.fulltextSearch?.provider === 'sqlPgroonga') {
query.andWhere('note.text &@ :q', { q });
query.andWhere('note.text &@~ :q', { q });
} else {
query.andWhere('LOWER(note.text) LIKE :q', { q: `%${ sqlLikeEscape(q.toLowerCase()) }%` });
}