File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ type BaseResponse struct {
2323 Index string `json:"_index,omitempty"`
2424 Type string `json:"_type,omitempty"`
2525 Id string `json:"_id,omitempty"`
26+ Parent string `json:"_parent,omitempty"` // for parent/child requests
27+ Routing string `json:"_routing,omitempty"`
2628 Source * json.RawMessage `json:"_source,omitempty"` // depends on the schema you've defined
2729 Version int `json:"_version,omitempty"`
2830 Found bool `json:"found,omitempty"`
Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ type Hit struct {
204204 Index string `json:"_index"`
205205 Type string `json:"_type,omitempty"`
206206 Id string `json:"_id"`
207+ Parent string `json:"_parent,omitempty"` // for parent/child requests
208+ Routing string `json:"_routing,omitempty"`
207209 Score Float32Nullable `json:"_score,omitempty"` // Filters (no query) dont have score, so is null
208210 Source * json.RawMessage `json:"_source"` // marshalling left to consumer
209211 Fields * json.RawMessage `json:"fields"` // when a field arg is passed to ES, instead of _source it returns fields
You can’t perform that action at this time.
0 commit comments