mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	Upgrade bleve from v2.0.6 to v2.3.0 (#18132)
This commit is contained in:
		
					parent
					
						
							
								1a4e2bfcd1
							
						
					
				
			
			
				commit
				
					
						25a290e320
					
				
			
		
					 70 changed files with 1283 additions and 660 deletions
				
			
		
							
								
								
									
										13
									
								
								vendor/github.com/blevesearch/zapx/v14/posting.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/github.com/blevesearch/zapx/v14/posting.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -544,13 +544,18 @@ func (i *PostingsIterator) nextDocNumAtOrAfter(atOrAfter uint64) (uint64, bool, | |||
| 		return 0, false, nil | ||||
| 	} | ||||
| 
 | ||||
| 	if i.postings == nil || i.postings.postings == i.ActualBM { | ||||
| 	if i.postings == nil || i.postings == emptyPostingsList { | ||||
| 		// couldn't find anything | ||||
| 		return 0, false, nil | ||||
| 	} | ||||
| 
 | ||||
| 	if i.postings.postings == i.ActualBM { | ||||
| 		return i.nextDocNumAtOrAfterClean(atOrAfter) | ||||
| 	} | ||||
| 
 | ||||
| 	i.Actual.AdvanceIfNeeded(uint32(atOrAfter)) | ||||
| 
 | ||||
| 	if !i.Actual.HasNext() { | ||||
| 	if !i.Actual.HasNext() || !i.all.HasNext() { | ||||
| 		// couldn't find anything | ||||
| 		return 0, false, nil | ||||
| 	} | ||||
|  | @ -574,6 +579,10 @@ func (i *PostingsIterator) nextDocNumAtOrAfter(atOrAfter uint64) (uint64, bool, | |||
| 			} | ||||
| 		} | ||||
| 
 | ||||
| 		if !i.all.HasNext() { | ||||
| 			return 0, false, nil | ||||
| 		} | ||||
| 
 | ||||
| 		allN = i.all.Next() | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue