mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Upgrade bleve from v2.0.6 to v2.3.0 (#18132)
This commit is contained in:
		
							
								
								
									
										13
									
								
								vendor/github.com/blevesearch/zapx/v12/posting.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/github.com/blevesearch/zapx/v12/posting.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -536,13 +536,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
 | 
			
		||||
	}
 | 
			
		||||
@@ -571,6 +576,10 @@ func (i *PostingsIterator) nextDocNumAtOrAfter(atOrAfter uint64) (uint64, bool,
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if !i.all.HasNext() {
 | 
			
		||||
			return 0, false, nil
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		allN = i.all.Next()
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user