mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	update SearchEngine
This commit is contained in:
		
							parent
							
								
									371cbc0c1d
								
							
						
					
					
						commit
						8499183d77
					
				@ -87,13 +87,16 @@ namespace MediaBrowser.Server.Implementations.Library
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            var searchTerm = query.SearchTerm;
 | 
					            var searchTerm = query.SearchTerm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (searchTerm != null)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                searchTerm = searchTerm.Trim().RemoveDiacritics();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (string.IsNullOrWhiteSpace(searchTerm))
 | 
					            if (string.IsNullOrWhiteSpace(searchTerm))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                throw new ArgumentNullException("searchTerm");
 | 
					                throw new ArgumentNullException("searchTerm");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            searchTerm = searchTerm.Trim().RemoveDiacritics();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            var terms = GetWords(searchTerm);
 | 
					            var terms = GetWords(searchTerm);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var hints = new List<Tuple<BaseItem, string, int>>();
 | 
					            var hints = new List<Tuple<BaseItem, string, int>>();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user