fix linter...
This commit is contained in:
parent
691a9a6be2
commit
285bbcb81f
1 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ export class SearchService {
|
||||||
|
|
||||||
if (this.config.fulltextSearch?.provider === 'sqlPgroonga') {
|
if (this.config.fulltextSearch?.provider === 'sqlPgroonga') {
|
||||||
query.andWhere('note.text &@~ :q', { q });
|
query.andWhere('note.text &@~ :q', { q });
|
||||||
} else if (this.config.fulltextSearch?.provider === "sqlTsvector") {
|
} else if (this.config.fulltextSearch?.provider === 'sqlTsvector') {
|
||||||
query.andWhere('note.tsvector_embedding @@ websearch_to_tsquery(:q)', { q });
|
query.andWhere('note.tsvector_embedding @@ websearch_to_tsquery(:q)', { q });
|
||||||
} else {
|
} else {
|
||||||
query.andWhere('note.text ILIKE :q', { q: `%${ sqlLikeEscape(q) }%` });
|
query.andWhere('note.text ILIKE :q', { q: `%${ sqlLikeEscape(q) }%` });
|
||||||
|
|
Loading…
Add table
Reference in a new issue