mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Meilisearch: require all query terms to be matched (#28293)
Previously only the first term had to be matched. That default Meilisearch behavior makes sense for e.g. some kind of autocomplete to find and select a single result. But for filtering issues it means you can't narrow down results by adding more terms. This is also more consistent with other indexers and GitHub. --- Reference: https://www.meilisearch.com/docs/reference/api/search#matching-strategy
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							b348424c64
						
					
				
				
					commit
					a7de14e493
				
			| @@ -215,6 +215,7 @@ func (b *Indexer) Search(ctx context.Context, options *internal.SearchOptions) ( | |||||||
| 		Limit:            int64(limit), | 		Limit:            int64(limit), | ||||||
| 		Offset:           int64(skip), | 		Offset:           int64(skip), | ||||||
| 		Sort:             sortBy, | 		Sort:             sortBy, | ||||||
|  | 		MatchingStrategy: "all", | ||||||
| 	}) | 	}) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return nil, err | 		return nil, err | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user