Add "Highlight" field to "Hit" structure.
This commit is contained in:
		
							parent
							
								
									5d24537714
								
							
						
					
					
						commit
						0963f937ac
					
				
							
								
								
									
										13
									
								
								structs.go
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								structs.go
									
									
									
									
									
								
							| @ -145,12 +145,13 @@ type Shard struct { | |||||||
| 
 | 
 | ||||||
| // Represent a hit returned by a search
 | // Represent a hit returned by a search
 | ||||||
| type Hit struct { | type Hit struct { | ||||||
| 	Index  string                 `json:"_index"` | 	Index     string                 `json:"_index"` | ||||||
| 	Type   string                 `json:"_type"` | 	Type      string                 `json:"_type"` | ||||||
| 	Id     string                 `json:"_id"` | 	Id        string                 `json:"_id"` | ||||||
| 	Score  float64                `json:"_score"` | 	Score     float64                `json:"_score"` | ||||||
| 	Source map[string]interface{} `json:"_source"` | 	Source    map[string]interface{} `json:"_source"` | ||||||
| 	Fields map[string]interface{} `json:"fields"` | 	Highlight map[string]interface{} `json:"highlight"` | ||||||
|  | 	Fields    map[string]interface{} `json:"fields"` | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // Represent the hits structure as returned by elasticsearch
 | // Represent the hits structure as returned by elasticsearch
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user