diff options
Diffstat (limited to 'vendor/gopkg.in/olivere/elastic.v5/search.go')
-rw-r--r-- | vendor/gopkg.in/olivere/elastic.v5/search.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/gopkg.in/olivere/elastic.v5/search.go b/vendor/gopkg.in/olivere/elastic.v5/search.go index a9eb212f4..80beafdf3 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/search.go +++ b/vendor/gopkg.in/olivere/elastic.v5/search.go @@ -461,6 +461,13 @@ type SearchHits struct { Hits []*SearchHit `json:"hits"` // the actual hits returned } +// NestedHit is a nested innerhit +type NestedHit struct { + Field string `json:"field"` + Offset int `json:"offset,omitempty"` + Child *NestedHit `json:"_nested,omitempty"` +} + // SearchHit is a single hit. type SearchHit struct { Score *float64 `json:"_score"` // computed score @@ -478,6 +485,7 @@ type SearchHit struct { Explanation *SearchExplanation `json:"_explanation"` // explains how the score was computed MatchedQueries []string `json:"matched_queries"` // matched queries InnerHits map[string]*SearchHitInnerHits `json:"inner_hits"` // inner hits with ES >= 1.5.0 + Nested *NestedHit `json:"_nested"` // for nested inner hits // Shard // HighlightFields |