Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildDocuments ¶
type ChildDocuments struct {
ID string `json:"id"`
TagKey string `json:"tag_key"`
TagValue string `json:"tag_value"`
}
ChildDocuments - childDocuments
type Collections ¶
type Collections struct {
ResponseHeader struct {
Status int `json:"status"`
QTime int `json:"QTime"`
} `json:"responseHeader"`
Collections []string `json:"collections"`
}
Collections - list collections
type DefaultDocument ¶
type DefaultDocument struct {
ID string `json:"id"`
Metric string `json:"metric"`
Type string `json:"type"`
ParentDoc bool `json:"parent_doc"`
TagKey string `json:"tag_key"`
TagValue string `json:"tag_value"`
CreationDate string `json:"creation_date"`
}
DefaultDocument - default document to post
type NewChildDocuments ¶
type NewChildDocuments struct {
ID string `json:"id"`
Metric string `json:"metric"`
Type string `json:"type"`
ParentDoc bool `json:"parent_doc"`
ChildDocuments []ChildDocuments `json:"_childDocuments_"`
}
NewChildDocuments - structs for ChildDocuments tests
type ResponseSearchChildDocs ¶
type ResponseSearchChildDocs struct {
ResponseHeader struct {
ZkConnected bool `json:"zkConnected"`
Status int `json:"status"`
QTime int `json:"QTime"`
Params struct {
Q string `json:"q"`
Fl string `json:"fl"`
} `json:"params"`
} `json:"responseHeader"`
Response struct {
NumFound int `json:"numFound"`
Start int `json:"start"`
Docs []struct {
ID string `json:"id"`
Metric string `json:"metric"`
Type string `json:"type"`
CreationDate time.Time `json:"creation_date"`
Version int64 `json:"_version_"`
ChildDocuments []struct {
ID string `json:"id"`
TagKey string `json:"tag_key"`
TagValue string `json:"tag_value"`
CreationDate time.Time `json:"creation_date"`
Version int64 `json:"_version_"`
} `json:"_childDocuments_"`
} `json:"docs"`
} `json:"response"`
}
ResponseSearchChildDocs - solr with child documents response
type SimpleResponse ¶
type SimpleResponse struct {
ResponseHeader struct {
ZkConnected bool `json:"zkConnected"`
Status int `json:"status"`
QTime int `json:"QTime"`
Params struct {
Q string `json:"q"`
} `json:"params"`
} `json:"responseHeader"`
Response struct {
NumFound int `json:"numFound"`
Start int `json:"start"`
Docs []struct {
ID string `json:"id"`
Metric string `json:"metric"`
Type string `json:"type"`
TagKey string `json:"tag_key"`
TagValue string `json:"tag_value"`
CreationDate time.Time `json:"creation_date"`
Version int64 `json:"_version_"`
} `json:"docs"`
} `json:"response"`
}
SimpleResponse - simple solr response
Click to show internal directories.
Click to hide internal directories.