mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	chore(export/share): tweak search results
This commit is contained in:
		
							parent
							
								
									08e66c18e7
								
							
						
					
					
						commit
						4cc9ba824d
					
				@ -71,7 +71,12 @@ async function fetchResults(query: string): Promise<SearchResults> {
 | 
				
			|||||||
                "title",
 | 
					                "title",
 | 
				
			||||||
                "content"
 | 
					                "content"
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            includeScore: true
 | 
					            includeScore: true,
 | 
				
			||||||
 | 
					            threshold: 0.65,
 | 
				
			||||||
 | 
					            ignoreDiacritics: true,
 | 
				
			||||||
 | 
					            ignoreLocation: true,
 | 
				
			||||||
 | 
					            ignoreFieldNorm: true,
 | 
				
			||||||
 | 
					            useExtendedSearch: true
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const results = fuse.search<SearchResult>(query, { limit: 5 });
 | 
					        const results = fuse.search<SearchResult>(query, { limit: 5 });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user