forked from algolia/algoliasearch-client-go
/
types_query.go
46 lines (42 loc) · 1.61 KB
/
types_query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package algoliasearch
type multipleQueriesRes struct {
Results []MultipleQueryRes `json:"results"`
}
type MultipleQueryRes struct {
Index string `json:"index"`
Processed bool `json:"processed"`
QueryRes
}
type QueryRes struct {
AppliedRules []Map `json:"appliedRules"`
AroundLatLng string `json:"aroundLatLng"`
AutomaticRadius string `json:"automaticRadius"`
ExhaustiveFacetsCount bool `json:"exhaustiveFacetsCount"`
ExhaustiveNbHits bool `json:"exhaustiveNbHits"`
Facets Map `json:"facets"`
FacetsStats Map `json:"facets_stats"`
Hits []Map `json:"hits"`
HitsPerPage int `json:"hitsPerPage"`
Index string `json:"index"`
IndexUsed string `json:"indexUsed"`
Length int `json:"length"`
Message string `json:"message"`
NbHits int `json:"nbHits"`
NbPages int `json:"nbPages"`
Offset int `json:"offset"`
Page int `json:"page"`
Params string `json:"params"`
ParsedQuery string `json:"parsedQuery"`
ProcessingTimeMS int `json:"processingTimeMS"`
Query string `json:"query"`
QueryAfterRemoval string `json:"queryAfterRemoval"`
QueryID string `json:"queryID"`
ServerUsed string `json:"serverUsed"`
TimeoutCounts bool `json:"timeoutCounts"`
TimeoutHits bool `json:"timeoutHits"`
UserData []Map `json:"userData"`
}
type IndexedQuery struct {
IndexName string
Params Map
}