Browse Source

Add "Highlight" field to "Hit" structure.

tags/v1.0.0
John Kjellberg 8 years ago
parent
commit
0963f937ac
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      structs.go

+ 7
- 6
structs.go View File

@@ -145,12 +145,13 @@ type Shard struct {

// Represent a hit returned by a search
type Hit struct {
Index string `json:"_index"`
Type string `json:"_type"`
Id string `json:"_id"`
Score float64 `json:"_score"`
Source map[string]interface{} `json:"_source"`
Fields map[string]interface{} `json:"fields"`
Index string `json:"_index"`
Type string `json:"_type"`
Id string `json:"_id"`
Score float64 `json:"_score"`
Source map[string]interface{} `json:"_source"`
Highlight map[string]interface{} `json:"highlight"`
Fields map[string]interface{} `json:"fields"`
}

// Represent the hits structure as returned by elasticsearch


Loading…
Cancel
Save