mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Upgrade bleve to v1.0.10 (#12737)
* Fix bug on migration 111 * Upgrade bleve to 1.0.10 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		
							
								
								
									
										3
									
								
								vendor/github.com/blevesearch/bleve/mapping/document.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/blevesearch/bleve/mapping/document.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -251,7 +251,6 @@ func (dm *DocumentMapping) AddFieldMapping(fm *FieldMapping) { | ||||
|  | ||||
| // UnmarshalJSON offers custom unmarshaling with optional strict validation | ||||
| func (dm *DocumentMapping) UnmarshalJSON(data []byte) error { | ||||
|  | ||||
| 	var tmp map[string]json.RawMessage | ||||
| 	err := json.Unmarshal(data, &tmp) | ||||
| 	if err != nil { | ||||
| @@ -308,8 +307,8 @@ func (dm *DocumentMapping) UnmarshalJSON(data []byte) error { | ||||
| } | ||||
|  | ||||
| func (dm *DocumentMapping) defaultAnalyzerName(path []string) string { | ||||
| 	rv := "" | ||||
| 	current := dm | ||||
| 	rv := current.DefaultAnalyzer | ||||
| 	for _, pathElement := range path { | ||||
| 		var ok bool | ||||
| 		current, ok = current.Properties[pathElement] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user