mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Improve issue search (#2387)
* Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
This commit is contained in:
		
							
								
								
									
										13
									
								
								vendor/github.com/blevesearch/bleve/mapping/mapping.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/github.com/blevesearch/bleve/mapping/mapping.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -22,12 +22,21 @@ import ( | ||||
| 	"github.com/blevesearch/bleve/document" | ||||
| ) | ||||
|  | ||||
| // A Classifier is an interface describing any object | ||||
| // which knows how to identify its own type. | ||||
| // A Classifier is an interface describing any object which knows how to | ||||
| // identify its own type.  Alternatively, if a struct already has a Type | ||||
| // field or method in conflict, one can use BleveType instead. | ||||
| type Classifier interface { | ||||
| 	Type() string | ||||
| } | ||||
|  | ||||
| // A bleveClassifier is an interface describing any object which knows how | ||||
| // to identify its own type.  This is introduced as an alternative to the | ||||
| // Classifier interface which often has naming conflicts with existing | ||||
| // structures. | ||||
| type bleveClassifier interface { | ||||
| 	BleveType() string | ||||
| } | ||||
|  | ||||
| var logger = log.New(ioutil.Discard, "bleve mapping ", log.LstdFlags) | ||||
|  | ||||
| // SetLog sets the logger used for logging | ||||
|   | ||||
		Reference in New Issue
	
	Block a user