mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	fix pgroona note.text query
This commit is contained in:
		
							parent
							
								
									feb80ee992
								
							
						
					
					
						commit
						fb058410f6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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()) }%` });
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue