mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	search performance: Stop at max_items.
Once we have max_items results, stop trying to get more items. This should really help large realms when you do a search on streams that turns up more than N streams (where N is about 12). We won't even bother to find people.
This commit is contained in:
		@@ -81,7 +81,7 @@ exports.initialize = function () {
 | 
			
		||||
            return suggestions.strings;
 | 
			
		||||
        },
 | 
			
		||||
        fixed: true,
 | 
			
		||||
        items: 12,
 | 
			
		||||
        items: search_suggestion.max_num_of_search_results,
 | 
			
		||||
        helpOnEmptyStrings: true,
 | 
			
		||||
        naturalSearch: true,
 | 
			
		||||
        highlighter: function (item) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user